/* =============================================
   DEN HUIS COFFEE & ROASTERY — style.css
   Color Palette: Forest Green + Warm Brown + White
   ============================================= */

:root {
  --green-deep: #1e3a2f;
  --green-mid: #2d5742;
  --green-light: #3d7a5a;
  --green-pale: #e8f0ea;
  --brown-dark: #5c3d1e;
  --brown-mid: #8b5e3c;
  --brown-light: #c8a07a;
  --brown-pale: #f5ede3;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #1a2418;
  --text-mid: #3a4a38;
  --text-light: #6b7f68;
  --border: rgba(30, 58, 47, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 12px rgba(30, 58, 47, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 58, 47, 0.12);
  --shadow-lg: 0 20px 60px rgba(30, 58, 47, 0.18);

  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green-deep);
}

.section-title em {
  font-style: italic;
  color: var(--brown-mid);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 2px solid var(--green-deep);
}

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 47, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--green-deep);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- NAVBAR ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brown-mid);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--green-deep);
}
.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--green-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 58, 47, 0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(45, 87, 66, 0.35) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(92, 61, 30, 0.25) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--green-deep) 0%, #0f2118 50%, #1a2e1a 100%);
  z-index: 0;
}

/* Coffee bean pattern overlay */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 85%,
      rgba(200, 160, 122, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(61, 122, 90, 0.15) 0%,
      transparent 40%
    );
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
  animation: heroReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 20px;
  animation: heroReveal 1.2s 0.15s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  animation: heroReveal 1.2s 0.25s both;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brown-light);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: heroReveal 1.2s 0.35s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroReveal 1.2s 0.45s both;
}

.hero .btn-primary {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
}
.hero .btn-primary:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroReveal 1.2s 0.6s both;
}

.hero-scroll span {
  display: block;
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

.hero-scroll p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-card-1 {
  grid-column: 1 / -1;
  background: var(--green-deep);
  color: var(--white);
}

.about-card-2 {
  background: var(--brown-pale);
}
.about-card-3 {
  background: var(--green-pale);
}

.about-card-inner {
  padding: 28px;
}

.about-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.about-card-1 h4 {
  color: var(--white);
}
.about-card-2 h4 {
  color: var(--brown-dark);
}
.about-card-3 h4 {
  color: var(--green-deep);
}

.about-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-card-1 p {
  color: rgba(255, 255, 255, 0.75);
}
.about-card-2 p {
  color: var(--brown-mid);
}
.about-card-3 p {
  color: var(--text-mid);
}

/* ---- MENU SECTION ---- */
.menu-section {
  padding: 120px 0;
  background: var(--cream);
}

.menu-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.tab:hover {
  border-color: var(--green-light);
  color: var(--green-deep);
}

.tab.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.menu-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.3;
}

.menu-item-price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--brown-mid);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.65;
  font-style: italic;
}

/* ---- VISIT ---- */
.visit {
  padding: 120px 0;
  background: var(--green-deep);
  color: var(--white);
}

.visit .section-label {
  color: var(--brown-light);
}
.visit .section-title {
  color: var(--white);
}
.visit .section-title em {
  color: var(--brown-light);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 6px;
}

.info-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.7;
}

.info-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

.info-link:hover {
  color: var(--brown-light);
  border-color: var(--brown-light);
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.visit .btn-primary {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
}
.visit .btn-primary:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
}

.visit .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.visit .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: #0d1e15;
  padding: 60px 0 28px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 12px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-social a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--brown-light);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ---- REVEAL ANIMATION ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .visit-map {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 100px 32px 48px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    animation: slideDown 0.35s ease;
  }

  .nav-links.open + .btn-nav {
    display: block;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    text-align: center;
    padding: 14px 40px;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--green-deep);
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .about {
    padding: 80px 0;
  }

  .about-stats {
    gap: 24px;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .about-card-1 {
    grid-column: auto;
  }

  .menu-section {
    padding: 80px 0;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .visit {
    padding: 80px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .cta-group {
    flex-direction: column;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .menu-tabs {
    gap: 6px;
  }

  .tab {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
}
