/* ========================================
   The Grasshopper Bar - Global Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-dark-green: #1a3a1a;
  --color-dark-green-rgb: 26, 58, 26;
  --color-gold: #c9b458;
  --color-gold-light: #d4c477;
  --color-black: #0d0d0d;
  --color-cream: #f5f0e2;
  --color-cream-dark: #e8e0cc;
  --color-white: #ffffff;
  --color-gray: #888;
  --color-overlay: rgba(13, 13, 13, 0.85);

  --font-heading: 'Old Standard TT', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-cream);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

ul { list-style: none; }

/* --- Utility Classes --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1rem auto;
}

.section-header p {
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.btn--filled {
  background: var(--color-gold);
  color: var(--color-black);
}

.btn--filled:hover {
  background: transparent;
  color: var(--color-gold);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-gray);
}

.breadcrumbs li:last-child::after {
  content: '';
}

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

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

.breadcrumbs .current {
  color: var(--color-gold);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.navbar__logo:hover {
  color: var(--color-gold-light);
}

.navbar__logo span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 400;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cream);
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-gold);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--transition);
}

.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);
}

/* ========================================
   Hero Sections
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-dark-green);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.4) 0%,
    rgba(26, 58, 26, 0.6) 50%,
    rgba(13, 13, 13, 0.8) 100%
  );
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero__content h1 {
  margin-bottom: 1.5rem;
}

.hero__content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-cream-dark);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (shorter for sub-pages) */
.hero--page {
  min-height: 50vh;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-dark-green);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(201, 180, 88, 0.2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand h3 {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.footer__brand p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__contact p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 180, 88, 0.15);
  color: var(--color-gray);
  font-size: 0.8rem;
}

/* ========================================
   About / Story Section
   ======================================== */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story__image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-dark-green);
  overflow: hidden;
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-style: italic;
  font-size: 0.9rem;
  border: 1px dashed rgba(201, 180, 88, 0.3);
}

.story__text h2 {
  margin-bottom: 1rem;
}

.story__text p {
  margin-bottom: 1.25rem;
  color: var(--color-cream-dark);
}

/* ========================================
   Team Section
   ======================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  background: rgba(26, 58, 26, 0.3);
  padding: 2rem;
  border: 1px solid rgba(201, 180, 88, 0.15);
  transition: border-color var(--transition);
}

.team-card:hover {
  border-color: var(--color-gold);
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--color-dark-green);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.75rem;
  font-style: italic;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--color-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* ========================================
   Menu Page
   ======================================== */
.menu-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.menu-nav button {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-nav button.active,
.menu-nav button:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 180, 88, 0.2);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  background: rgba(26, 58, 26, 0.2);
  padding: 1.5rem;
  border: 1px solid rgba(201, 180, 88, 0.1);
  transition: all var(--transition);
}

.menu-item:hover {
  border-color: var(--color-gold);
  background: rgba(26, 58, 26, 0.4);
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.menu-item__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-cream);
}

.menu-item__price {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-item__tasting-notes {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.menu-item__desc {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-note {
  text-align: center;
  color: var(--color-gray);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed rgba(201, 180, 88, 0.2);
}

/* ========================================
   Gallery Page
   ======================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark-green);
  border: 1px solid rgba(201, 180, 88, 0.1);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__item__overlay {
  opacity: 1;
}

.gallery__item__overlay span {
  color: var(--color-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ========================================
   Contact Page
   ======================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__info h3 {
  margin-bottom: 1.5rem;
}

.contact__detail {
  margin-bottom: 1.5rem;
}

.contact__detail h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.contact__detail p {
  color: var(--color-cream-dark);
  font-size: 0.95rem;
}

.contact__detail a {
  color: var(--color-cream-dark);
}

.contact__detail a:hover {
  color: var(--color-gold);
}

.contact__map {
  aspect-ratio: 1;
  background: var(--color-dark-green);
  border: 1px solid rgba(201, 180, 88, 0.2);
  overflow: hidden;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact__map .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-style: italic;
}

.contact__form {
  background: rgba(26, 58, 26, 0.2);
  padding: 2rem;
  border: 1px solid rgba(201, 180, 88, 0.15);
}

.contact__form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(13, 13, 13, 0.5);
  border: 1px solid rgba(201, 180, 88, 0.3);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

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

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

/* ========================================
   Highlights / Features
   ======================================== */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(26, 58, 26, 0.2);
  border: 1px solid rgba(201, 180, 88, 0.1);
  transition: all var(--transition);
}

.highlight-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.highlight-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.highlight-card p {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ========================================
   Tasting Menu / Special Section
   ======================================== */
.tasting-banner {
  background: var(--color-dark-green);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(201, 180, 88, 0.15);
  border-bottom: 1px solid rgba(201, 180, 88, 0.15);
}

.tasting-banner h2 {
  margin-bottom: 1rem;
}

.tasting-banner p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--color-cream-dark);
}

.tasting-banner .time {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(26, 58, 26, 0.2);
  padding: 2rem;
  border-left: 3px solid var(--color-gold);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-cream-dark);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-card cite {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-style: normal;
}

/* ========================================
   Values / Philosophy
   ======================================== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border: 1px solid rgba(201, 180, 88, 0.15);
  background: rgba(26, 58, 26, 0.15);
}

.value-card h3 {
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.value-card p {
  color: var(--color-cream-dark);
  font-size: 0.9rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .story__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .story__image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.1rem;
  }

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

  .hero--page {
    min-height: 40vh;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .lightbox__nav {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

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