/* ============================================
   funnudge.icu — Artisan Coffee Roastery
   Warm, earthy, slow, handcrafted palette
   ============================================ */

:root {
  /* Palette — cream, espresso, walnut, clay */
  --cream: #f6efe4;
  --cream-soft: #fbf6ec;
  --paper: #ede4d3;
  --clay: #c89673;
  --terracotta: #b86b4b;
  --espresso: #2a1d14;
  --walnut: #4a3526;
  --coffee: #6b4a35;
  --moss: #6b7a4a;
  --ink: #1f140d;
  --muted: #8a7563;
  --line: rgba(74, 53, 38, 0.12);
  --shadow-soft: 0 20px 60px -20px rgba(42, 29, 20, 0.25);
  --shadow-warm: 0 30px 80px -30px rgba(184, 107, 75, 0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, system-ui, sans-serif;

  --container: 1320px;
  --radius: 18px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--terracotta); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}
.eyebrow.light { color: var(--cream); opacity: 0.85; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.btn-primary {
  background: var(--espresso);
  color: var(--cream-soft);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--terracotta);
  color: var(--cream-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--walnut);
  color: var(--espresso);
}
.btn.large { padding: 1.1rem 2rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 0;
  background: rgba(246, 239, 228, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: all .3s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: -0.02em;
}
.logo-mark {
  font-size: 1.7rem;
  color: var(--terracotta);
  line-height: 1;
}
.logo-dot { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--walnut);
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--espresso); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
}

.nav-cta { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--espresso);
  transition: .3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: saturate(0.95) contrast(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(246,239,228,0.4) 0%, rgba(246,239,228,0) 30%, rgba(42,29,20,0.55) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(184,107,75,0.25), transparent 60%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream-soft);
}
.hero-content .eyebrow { color: var(--cream); opacity: 0.9; }
.hero-title {
  color: var(--cream-soft);
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 900px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.hero-title em { color: #f0b896; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(251, 246, 236, 0.9);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-cta .btn-ghost {
  color: var(--cream-soft);
  border-color: rgba(251, 246, 236, 0.35);
}
.hero-cta .btn-ghost:hover {
  background: rgba(251, 246, 236, 0.12);
  border-color: var(--cream-soft);
  color: var(--cream-soft);
}
.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 246, 236, 0.18);
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream-soft);
}
.hero-meta span {
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.7);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  opacity: 0.7;
  writing-mode: vertical-rl;
  animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Trust strip */
.trust {
  padding: 3rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: var(--coffee);
  margin-bottom: 1.2rem;
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: var(--walnut);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Section heads */
.section-head { margin-bottom: 4rem; max-width: 700px; }
.section-head.center { margin: 0 auto 4rem; text-align: center; }

/* Services */
.services { padding: 8rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .5s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-card h3 { padding: 1.5rem 1.8rem 0.5rem; }
.service-card p {
  padding: 0 1.8rem 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Why */
.why { padding: 8rem 0; background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-text p {
  font-size: 1.05rem;
  color: var(--coffee);
  margin: 1.5rem 0 2rem;
  max-width: 500px;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.why-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--walnut);
}
.why-list span {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-weight: 500;
  flex-shrink: 0;
}
.why-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.why-image img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.why-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--cream-soft);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.why-badge strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--espresso);
}
.why-badge span { font-size: 0.82rem; color: var(--muted); }

/* Gallery */
.gallery { padding: 8rem 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 1.2rem;
}
.g {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.g img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.g:hover img { transform: scale(1.05); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 1; }
.g3 { grid-column: span 1; }
.g4 { grid-column: span 1; }
.g5 { grid-column: span 1; }

/* Testimonials */
.testimonials { padding: 8rem 0; background: var(--paper); }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.quotes blockquote {
  background: var(--cream-soft);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.quotes blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--terracotta);
  opacity: 0.25;
  position: absolute;
  top: 0.2rem;
  left: 1.5rem;
  line-height: 1;
}
.quotes p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--walnut);
  margin-bottom: 1.5rem;
  position: relative;
}
.quotes footer {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* CTA Banner */
.cta-banner {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--walnut) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,107,75,0.3), transparent 60%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--cream-soft); margin: 0.5rem 0; }
.cta-inner p { color: rgba(251, 246, 236, 0.75); }
.cta-inner .btn-primary { background: var(--cream-soft); color: var(--espresso); }
.cta-inner .btn-primary:hover { background: var(--terracotta); color: var(--cream-soft); }

/* Page Hero */
.page-hero {
  padding: 7rem 0 5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 1.5rem; }
.page-lead {
  font-size: 1.2rem;
  color: var(--coffee);
  max-width: 640px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

/* Story */
.story { padding: 8rem 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px;
}
.story-image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-text h2 { margin: 2rem 0 1rem; }
.story-text h2:first-child { margin-top: 0; }
.story-text p {
  color: var(--coffee);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* Values */
.values { padding: 6rem 0; background: var(--paper); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--cream-soft);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all .4s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.value-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--terracotta);
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
}
.value-card h3 { margin-bottom: 0.8rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* Team */
.team { padding: 8rem 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: left;
}
.team-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  transition: transform .5s ease;
}
.team-card:hover img { transform: translateY(-4px); }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card span {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Menu */
.menu-section { padding: 6rem 0 8rem; }
.menu-block { margin-bottom: 5rem; }
.menu-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.menu-head h2 { white-space: nowrap; }
.menu-line { flex: 1; height: 1px; background: var(--line); }
.menu-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.menu-item-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.menu-item-head .dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  margin-bottom: 4px;
}
.menu-item-head .price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terracotta);
}
.menu-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact */
.contact-section { padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  background: var(--cream-soft);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: block;
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.info-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.info-card a { color: var(--espresso); }
.info-card a:hover { color: var(--terracotta); }

.contact-form {
  background: var(--paper);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.contact-form h2 { margin-bottom: 0.5rem; }
.form-lead {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.contact-form label {
  display: block;
  margin-bottom: 1.2rem;
}
.contact-form span {
  display: block;
  font-size: 0.85rem;
  color: var(--walnut);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--espresso);
  transition: all .3s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(184,107,75,0.1);
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(107, 122, 74, 0.12);
  color: var(--moss);
  border-radius: 12px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* Map */
.map-section { padding: 4rem 0 8rem; }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: sepia(0.15) saturate(0.85);
}
.map-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--cream-soft);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 320px;
  box-shadow: var(--shadow-soft);
}
.map-card h3 { margin-bottom: 0.5rem; }
.map-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* Legal pages */
.legal { padding: 5rem 0 8rem; }
.legal-inner { max-width: 760px; }
.legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p {
  color: var(--coffee);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal a { color: var(--terracotta); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--espresso);
  color: rgba(251, 246, 236, 0.75);
  padding: 5rem 0 2rem;
}
.site-footer .logo { color: var(--cream-soft); margin-bottom: 1rem; }
.site-footer .logo-dot { color: var(--terracotta); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 246, 236, 0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--cream-soft);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.footer-col p, .footer-col li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  list-style: none;
  line-height: 1.7;
}
.footer-col a { color: rgba(251, 246, 236, 0.75); }
.footer-col a:hover { color: var(--clay); }
.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.5);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .why-grid, .story-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-image { position: static; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .g1 { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .g2, .g3, .g4, .g5 { aspect-ratio: 1; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream-soft);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .4s ease;
    box-shadow: -20px 0 60px rgba(42,29,20,0.2);
  }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { min-height: 88vh; padding: 6rem 0 3rem; }
  .hero-meta { gap: 1.5rem; }
  .hero-scroll { display: none; }

  .services, .why, .gallery, .testimonials, .story, .team, .menu-section, .contact-section, .map-section, .legal {
    padding: 4rem 0;
  }
  .section-head { margin-bottom: 2.5rem; }

  .menu-items { grid-template-columns: 1fr; gap: 1.5rem; }
  .menu-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .menu-line { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem; }

  .map-card { position: static; max-width: none; margin-top: -1rem; }
  .map-wrap img { height: 320px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

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