:root {
  --primary: #1F3F24;
  --primary-light: #3D6A43;
  --secondary: #F6F4EB;
  --accent: #D96B43;
  --accent-green: #7FA392;
  --dark: #2B2E2A;
  --muted: #6E746B;
  --light: #FFFFFF;
  --line: rgba(31, 63, 36, 0.12);
  --shadow: 0 12px 30px rgba(31, 63, 36, 0.08);
  --shadow-hover: 0 18px 40px rgba(31, 63, 36, 0.14);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", "Outfit", sans-serif;
  background: var(--secondary);
  color: var(--dark);
  line-height: 1.75;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 63, 36, 0.96);
  backdrop-filter: blur(14px);
  color: var(--secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #E9A16D);
  box-shadow: 0 0 0 5px rgba(217, 107, 67, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  opacity: 0.9;
  transition: 0.25s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-links a.active {
  color: var(--accent);
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Common Hero */
.page-hero,
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(127, 163, 146, 0.24), transparent 26%),
    radial-gradient(circle at 82% 15%, rgba(217, 107, 67, 0.18), transparent 22%),
    linear-gradient(135deg, #1F3F24 0%, #0D2010 100%);
  color: var(--secondary);
}

.hero {
  padding: 118px 0 100px;
}

.page-hero {
  padding: 92px 0 78px;
  text-align: center;
}

.hero::after,
.page-hero::after {
  content: "🌿";
  position: absolute;
  right: 8%;
  bottom: 8%;
  font-size: 8rem;
  opacity: 0.12;
  transform: rotate(-18deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  display: inline-block;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #CFE2D4;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: #DCE8DF;
  font-size: 1.14rem;
}

.page-hero p {
  margin: 0 auto;
}

.hero p {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: 0.28s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 25px rgba(217, 107, 67, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #C95E38;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

/* Sections */
.section {
  padding: 82px 0;
}

.section-soft {
  background: #F2F7F4;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

h2 {
  color: var(--primary);
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Cards */
.card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 63, 36, 0.06);
  transition: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: var(--accent-green);
}

.card:nth-child(even)::before {
  background: var(--accent);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #EBF2ED;
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

/* Grids */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Home Hero Card */
.hero-card {
  background: rgba(246, 244, 235, 0.96);
  color: var(--dark);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-card h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.mini-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.mini-list li {
  display: flex;
  gap: 10px;
  color: #4A4E49;
  font-size: 0.96rem;
}

.mini-list li::before {
  content: "🌿";
}

/* Brand Story */
.story-node {
  text-align: center;
  background: var(--light);
  padding: 34px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.story-node:hover {
  transform: translateY(-4px);
}

.node-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  border: 5px solid var(--secondary);
}

.story-node:nth-child(2) .node-icon {
  background: var(--accent-green);
}

.story-node:nth-child(3) .node-icon {
  background: var(--accent);
}

.story-node h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.story-node p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Menu */
.menu-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.menu-panel {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.menu-panel h3 {
  color: var(--primary);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.menu-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px dashed rgba(31, 63, 36, 0.16);
  padding-bottom: 9px;
  color: #4A4E49;
}

.price {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

/* Products */
.product {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 63, 36, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 240px;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product h3 {
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.product p {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge-vegan {
  background: rgba(127, 163, 146, 0.16);
  color: #2F5243;
  border-color: rgba(127, 163, 146, 0.3);
}

.badge-lacto {
  background: rgba(217, 107, 67, 0.12);
  color: #9C3D1E;
  border-color: rgba(217, 107, 67, 0.25);
}

.badge-ovo {
  background: rgba(242, 179, 18, 0.12);
  color: #8C6603;
  border-color: rgba(242, 179, 18, 0.25);
}

.badge-lacto-ovo {
  background-color: rgba(242, 179, 18, 0.12);
  color: #8C6603;
  border: 1px solid rgba(242, 179, 18, 0.25);
}

/* Notice */
.notice {
  margin-top: 24px;
  padding: 18px 22px;
  background: #F2F7F4;
  border-left: 6px solid var(--accent-green);
  border-radius: 16px;
  color: #375444;
}

/* Rental */
.rental-box {
  background:
    radial-gradient(circle at 20% 20%, rgba(127, 163, 146, 0.22), transparent 26%),
    white;
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(31, 63, 36, 0.08);
}

.rental-box h3 {
  color: var(--primary);
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.rental-box p {
  max-width: 760px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.status-tag {
  display: inline-block;
  color: var(--accent);
  background: rgba(217, 107, 67, 0.1);
  border: 1px solid rgba(217, 107, 67, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-info,
.contact-form {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-info h3,
.contact-form h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(31, 63, 36, 0.18);
  background: #FBFAF5;
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 14px;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(127, 163, 146, 0.14);
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: var(--secondary);
  border-left: 5px solid var(--accent);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  font-size: 1.25rem;
}

/* Animations reveal styles */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer Navigation */
.footer-nav {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s, opacity 0.25s;
  opacity: 0.95;
}

.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 34px 0;
  text-align: center;
  margin-top: 40px;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .menu-wrap,
  .two-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav {
    height: auto;
    padding: 16px 0;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    padding: 12px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(31, 63, 36, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px;
    gap: 24px;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-wrap: nowrap;
  }

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

  .nav-links a {
    font-size: 1.15rem;
    width: 100%;
    padding: 8px 0;
    border-bottom: none;
    color: var(--secondary);
  }

  .nav-links a.active {
    border-bottom: none;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
  }

  .service-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 82px 0 70px;
  }

  .section {
    padding: 58px 0;
  }

  .card,
  .menu-panel,
  .rental-box,
  .contact-info,
  .contact-form {
    padding: 22px;
  }
}

/* Small Button & Outline Button Utilities */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 700;
}

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

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}
