/* =========================================================
   Ember & Ash — style.css
   ========================================================= */
:root {
  --espresso: #1b120d;
  --char: #251a12;
  --card: #2c1f16;
  --cream: #f2e8d9;
  --cream-dim: #c9bba6;
  --amber: #c88a3b;
  --amber-soft: #e4b067;
  --rust: #a9432b;

  --display: "Fraunces", serif;
  --body: "Work Sans", sans-serif;
  --mono: "Space Mono", monospace;

  --container-pad: 1.5rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  color: var(--cream);
}
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.ea-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: 0 0 0.9rem;
}

.ea-section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.ea-section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
}

/* buttons */
.ea-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.ea-btn--solid {
  background: var(--amber);
  color: var(--espresso);
}
.ea-btn--solid:hover {
  background: var(--amber-soft);
  transform: translateY(-2px);
}
.ea-btn--ghost {
  border-color: rgba(242, 232, 217, 0.35);
  color: var(--cream);
}
.ea-btn--ghost:hover {
  border-color: var(--amber-soft);
  color: var(--amber-soft);
  transform: translateY(-2px);
}

/* =========================================================
   NAV
   ========================================================= */
.ea-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 18, 13, 0);
  border-bottom: 1px solid rgba(242, 232, 217, 0);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    padding 0.35s ease;
  padding: 1.3rem 0;
}
.ea-nav.is-scrolled,
.ea-nav.is-solid {
  background: rgba(27, 18, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 232, 217, 0.08);
  padding: 0.85rem 0;
}
.ea-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ea-nav__brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.ea-nav__brand span {
  color: var(--amber);
}
.ea-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}
.ea-nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}
.ea-nav__links a:hover,
.ea-nav__links a.is-active {
  color: var(--amber-soft);
}
.ea-nav__cta {
  background: var(--amber);
  color: var(--espresso) !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.ea-nav__cta:hover,
.ea-nav__cta.is-active {
  background: var(--amber-soft);
  color: var(--espresso) !important;
}
.ea-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.ea-nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.ea-page-hero {
  position: relative;
  padding: 10rem 0 4.5rem;
  background:
    radial-gradient(
      ellipse 80% 50% at 70% 0%,
      rgba(200, 138, 59, 0.12),
      transparent 55%
    ),
    var(--espresso);
  border-bottom: 1px solid rgba(242, 232, 217, 0.06);
}
.ea-page-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.ea-page-hero__sub {
  color: var(--cream-dim);
  font-size: 1.05rem;
  max-width: 520px;
}

/* =========================================================
   HERO (home)
   ========================================================= */
.ea-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  background:
    radial-gradient(
      ellipse 90% 60% at 80% 0%,
      rgba(200, 138, 59, 0.16),
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at 10% 100%,
      rgba(169, 67, 43, 0.14),
      transparent 60%
    ),
    var(--espresso);
  overflow: hidden;
}
.ea-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}
.ea-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.ea-hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.ea-hero__title em {
  color: var(--amber-soft);
  font-style: italic;
  font-weight: 500;
}
.ea-hero__sub {
  font-size: 1.08rem;
  color: var(--cream-dim);
  max-width: 480px;
  margin-bottom: 2.2rem;
}
.ea-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* signature cup */
.ea-cup {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-46%);
  width: min(30vw, 320px);
  z-index: 1;
  opacity: 0.95;
}
.ea-cup__svg {
  width: 100%;
  height: auto;
}
.cup-body {
  fill: var(--card);
  stroke: rgba(242, 232, 217, 0.15);
  stroke-width: 1.5;
}
.cup-handle {
  fill: none;
  stroke: rgba(242, 232, 217, 0.15);
  stroke-width: 10;
  stroke-linecap: round;
}
.cup-shadow {
  fill: rgba(0, 0, 0, 0.25);
  filter: blur(6px);
}
.cup-top {
  fill: var(--espresso);
  stroke: rgba(242, 232, 217, 0.15);
  stroke-width: 1.5;
}
.cup-coffee {
  fill: #3b2416;
}
.steam {
  fill: none;
  stroke: var(--amber-soft);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: center;
}

@media (max-width: 991px) {
  .ea-cup {
    display: none;
  }
}

.ea-scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(242, 232, 217, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.ea-scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber-soft);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
  }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.ea-marquee {
  background: var(--amber);
  color: var(--espresso);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(27, 18, 13, 0.15);
  border-bottom: 1px solid rgba(27, 18, 13, 0.15);
}
.ea-marquee__track {
  display: inline-flex;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: marquee 26s linear infinite;
}
.ea-marquee__track span {
  padding: 0 0.2rem;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   MENU
   ========================================================= */
.ea-menu {
  padding: 7rem 0;
}
.ea-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.ea-menu__cat {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--amber-soft);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(242, 232, 217, 0.2);
}
.ea-receipt {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ea-receipt li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-size: 0.98rem;
  color: var(--cream-dim);
}
.ea-receipt li i {
  flex: 1;
  border-bottom: 1px dotted rgba(242, 232, 217, 0.22);
  height: 0;
  transform: translateY(-4px);
}
.ea-receipt li b {
  font-family: var(--mono);
  color: var(--cream);
  font-weight: 400;
  font-size: 0.92rem;
}
.ea-receipt li span {
  color: var(--cream);
}
.ea-menu__note {
  margin-top: 3rem;
  color: var(--cream-dim);
  font-size: 0.92rem;
  font-style: italic;
  border-left: 2px solid var(--amber);
  padding-left: 1rem;
}

@media (max-width: 991px) {
  .ea-menu__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* =========================================================
   STORY
   ========================================================= */
.ea-story {
  padding: 6rem 0;
  background: var(--char);
}
.ea-story__art {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
}
.ea-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ea-story__year {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.ea-story__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 18, 13, 0.45) 0%, transparent 50%);
  pointer-events: none;
}
.ea-story__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 1.3rem;
  max-width: 480px;
}
.ea-story__p {
  color: var(--cream-dim);
  margin-bottom: 1.1rem;
  max-width: 480px;
}
.ea-story__stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.ea-story__stats div {
  display: flex;
  flex-direction: column;
}
.ea-story__stats b {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--amber-soft);
  font-weight: 500;
}
.ea-story__stats span {
  font-size: 0.8rem;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   GALLERY
   ========================================================= */
.ea-gallery {
  padding: 7rem 0 5rem;
}
.ea-gallery__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.ea-gallery__card {
  height: 320px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 232, 217, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ea-gallery__overlay {
  background: linear-gradient(
    to top,
    rgba(27, 18, 13, 0.92) 0%,
    rgba(27, 18, 13, 0.7) 40%,
    transparent 100%
  );
  padding: 2.2rem 1.3rem 1.3rem;
  width: 100%;
}
.ea-gallery__card p {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   VISIT / FORM
   ========================================================= */
.ea-visit {
  padding: 7rem 0;
  background: var(--char);
}
.ea-visit__title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
}
.ea-hours {
  margin-bottom: 2rem;
}
.ea-hours div {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(242, 232, 217, 0.1);
  max-width: 340px;
}
.ea-hours span {
  color: var(--cream-dim);
}
.ea-hours b {
  font-family: var(--mono);
  font-weight: 400;
}
.ea-address p {
  margin-bottom: 0.5rem;
  color: var(--cream-dim);
}
.ea-address a:hover {
  color: var(--amber-soft);
}
.ea-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.ea-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(242, 232, 217, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.ea-social a:hover {
  border-color: var(--amber-soft);
  color: var(--amber-soft);
}

.ea-form {
  background: var(--card);
  border: 1px solid rgba(242, 232, 217, 0.08);
  border-radius: 20px;
  padding: 2.4rem;
}
.ea-form__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.form-label {
  color: var(--cream-dim);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.ea-input {
  background: var(--espresso);
  border: 1px solid rgba(242, 232, 217, 0.14);
  color: var(--cream);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.ea-input:focus {
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 0 0 3px rgba(200, 138, 59, 0.25);
  border-color: var(--amber);
}
.ea-input::placeholder {
  color: rgba(242, 232, 217, 0.35);
}
.ea-form__submit {
  margin-top: 1.6rem;
  border: none;
  cursor: pointer;
}
.ea-form__status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--amber-soft);
  min-height: 1.2em;
}

/* =========================================================
   TEASER CARDS (home)
   ========================================================= */
.ea-teasers {
  padding: 6rem 0;
}
.ea-teasers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ea-teaser {
  background: var(--card);
  border: 1px solid rgba(242, 232, 217, 0.08);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ea-teaser:hover {
  border-color: rgba(200, 138, 59, 0.35);
  transform: translateY(-3px);
}
.ea-teaser h3 {
  font-size: 1.35rem;
  font-weight: 500;
}
.ea-teaser p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  flex: 1;
}
.ea-teaser .ea-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}

@media (max-width: 991px) {
  .ea-teasers__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ea-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(242, 232, 217, 0.08);
}
.ea-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ea-footer__brand {
  font-size: 1.1rem;
}
.ea-footer p {
  color: var(--cream-dim);
  font-size: 0.85rem;
}
.ea-footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ea-footer__links a {
  font-size: 0.85rem;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}
.ea-footer__links a:hover {
  color: var(--amber-soft);
}

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 1;
}
.no-js [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* =========================================================
   RESPONSIVE NAV
   ========================================================= */
@media (max-width: 900px) {
  .ea-nav__toggle {
    display: flex;
  }
  .ea-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--char);
    flex-direction: column;
    align-items: flex-start;
    padding: 6.5rem 2rem 2rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  .ea-nav__links.is-open {
    transform: translateX(0);
  }
  .ea-nav__cta {
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .ea-hero {
    padding: 7rem 0 5rem;
  }
  .ea-menu,
  .ea-story,
  .ea-gallery,
  .ea-visit,
  .ea-teasers {
    padding: 4.5rem 0;
  }
  .ea-page-hero {
    padding: 8.5rem 0 3.5rem;
  }
  .ea-form {
    padding: 1.6rem;
  }
  .ea-story__art {
    height: 300px;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
}
