/* ==========================================================================
   MERENGA CAFE — stylesheet
   ========================================================================== */

:root {
  --bg-darker: #0e0a08;
  --bg-dark: #17110c;
  --bg-dark-2: #1c1510;
  --line-soft: rgba(214, 173, 111, 0.16);
  --line-soft-2: rgba(214, 173, 111, 0.28);

  --cream: #f5ecdd;
  --cream-2: #efe4d0;
  --card-cream: #f2e8d8;
  --muted: #cdbca4;
  --muted-2: #a99880;

  --gold: #d99a4e;
  --gold-2: #e8b169;
  --gold-deep: #c1813a;
  --ink: #2c1e13;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* @media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
} */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--cream);
  letter-spacing: 0.2px;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #d49a50, #c1813a);
  color: #241708;
  box-shadow: 0 8px 20px rgba(201, 140, 65, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 140, 65, 0.35);
}
.btn--outline {
  background: #17110c7a;
  color: #d49a50;
  border-color: var(--line-soft-2);
}
.btn--outline:hover {
  border-color: var(--gold-2);
  background: rgba(217, 154, 78, 0.08);
  transform: translateY(-2px);
}
.btn--outline svg {
  color: var(--gold-2);
}
.btn--sm {
  padding: 7px 20px;
  border: 2px solid var(--line-soft-2);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--line-soft-2);
  color: var(--cream-2);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pill-btn:hover {
  border-color: var(--gold-2);
  background: rgba(217, 154, 78, 0.08);
}
.pill-btn svg {
  color: var(--gold-2);
  flex-shrink: 0;
}
.pill-btn .chev {
  color: var(--muted);
  margin-left: 2px;
}

.text-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link:hover {
  /* border-color: var(--gold-2); */
  opacity: 0.8;
  gap: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 40;
}

.topbar {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 32px;
  gap: 20px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.topbar__item svg {
  color: var(--gold-2);
  flex-shrink: 0;
}
.topbar__item:hover {
  color: var(--cream);
}

.navbar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-soft);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 85px;
}
.logo__cup {
  color: var(--gold-2);
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--cream);
}
.logo__sub {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav a {
  font-size: 16px;
  color: var(--cream-2);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover {
  color: var(--gold-2);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-soft-2);
  border-radius: 10px;
}
.burger span {
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-image: url("./../img/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid rgb(126 97 53);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(14, 10, 8, 0.94) 0%,
      rgb(14 10 8 / 69%) 32%,
      rgb(14 10 8 / 2%) 62%,
      rgb(14 10 8 / 31%) 100%
    ),
    linear-gradient(0deg, rgb(14 10 8 / 4%), transparent 40%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content {
  max-width: 950px;
  padding: 90px 0;
  margin: 0 auto;
  text-align: center;
}
.hero__content h1 {
  font-size: 64px;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 600;
  color: var(--cream);
}
.hero__content p {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-2);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Menu section
   ========================================================================== */

.menu-section {
  padding: 31px 0;
  background: var(--bg-dark);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.menu-header h2 {
  font-size: 42px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 1px solid var(--line-soft-2);
  color: var(--cream-2);
  padding: 8px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.2s var(--ease);
}
.tab:hover {
  border-color: var(--gold-2);
  transform: translateY(-1px);
}
.tab.is-active {
  background: linear-gradient(180deg, #d49a50, #c1813a);
  border-color: transparent;
  color: #241708;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.menu-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    opacity 0.3s var(--ease);
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  border-color: var(--line-soft-2);
}
.menu-card.is-hidden {
  display: none;
}

.menu-card__img {
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  background: #fff;
}
.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.menu-card:hover .menu-card__img img {
  transform: scale(1.07);
}

.menu-card__info {
  background: #f1ebe0;
  padding: 0px 16px 0px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 57px;
}
.menu-card__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.menu-card__name {
  /* font-family: var(--font-display); */
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
}
.menu-card__price {
  font-size: 14px;
  color: #6b5942;
  font-weight: 500;
  white-space: nowrap;
}

.add-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #241708;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .add-btn.is-added {
  background: linear-gradient(180deg, #8fbf7a, #5c9247);
} */

.menu-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 4px;
  font-size: 15px;
}

.menu-more {
  text-align: center;
  margin-top: 40px;
}

.btn[hidden] {
  display: none !important;
}

/* ==========================================================================
   About section
   ========================================================================== */

.about-section {
  padding: 0 0 42px;
  background: var(--bg-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid rgb(126 97 53);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark-2);
  align-items: stretch;
}

.about-text {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.about-text h2 {
  font-size: 43px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.about-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;

  /* прибираємо старе обмеження */
  max-width: none;

  margin: 0;
}

.about-media {
  border-left: 1px solid rgb(126 97 53);
  min-height: 0;
  position: relative;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 655px;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   Instagram section
   ========================================================================== */

.insta-section {
  padding: 0 0 40px;
  background: var(--bg-dark);
}

.insta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 18px;
}
.insta-header__title {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.insta-header__title h2 {
  font-size: 30px;
}
.insta-handle {
  color: var(--muted);
  font-size: 18px;
}

.insta-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all 0.25s var(--ease);
}
.insta-icon svg {
  width: 40px;
  height: 40px;
  transition: all 0.25s var(--ease);
}
.insta-icon:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.insta-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.insta-item:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 40px;
  padding: 20px 32px;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-line svg {
  color: var(--gold-2);
  flex-shrink: 0;
}
.footer-line:hover {
  color: var(--cream);
}

.footer-nav {
  padding-top: 2px;
  gap: 8px;
}
.footer-nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover {
  color: var(--gold-2);
}

.footer-label {
  font-size: 15px;
  color: var(--muted);
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 45px;
  height: 45px;
  border: 1px solid var(--line-soft-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-socials a svg {
  width: 35px;
  height: 35px;
}
.footer-socials a:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.footer-doodle {
  color: var(--gold);
  opacity: 0.8;
  justify-self: end;
  align-self: center;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
    padding: 20px 0;
    
}
.footer-bottom p {

  font-size:14px;
  color: var(--muted-2);
}
.footer-link:hover {
  color: #e8b169;
  opacity: 0.85;
}
.footer-dev {
  color: var(--muted-2);
  font-size: 14px;
}
.footer-link svg {
  /* filter: brightness(0) saturate(100%) invert(50%); */
    filter: brightness(0) saturate(100%) invert(78%) sepia(34%)
          saturate(1026%) hue-rotate(342deg) brightness(96%) contrast(89%);
  transition: filter 0.3s ease;
}

.footer-link:hover svg {
  filter: brightness(0) saturate(100%) invert(78%) sepia(34%)
          saturate(1026%) hue-rotate(342deg) brightness(96%) contrast(89%);
}
.footer-bottom__wrap {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}
/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* .hero__content h1 {
    font-size: 46px;
  } */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    min-height: 280px;
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-doodle {
    display: none;
  }
  .about-media img {
    max-height: 655px !important;
  }
}

@media (max-width: 860px) {
  /* .topbar__item span {
    display: none;
  } */
  .topbar__left {
    gap: 14px;
  }
  .hero__content h1 {
    font-size: 44px;
    line-height: 48px;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav.is-open {
    max-height: 320px;
  }
  .nav a {
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a::after {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: 460px;
  }
  .hero__content {
    padding: 64px 0;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .topbar__inner {
    padding: 10px 18px;
  }
  .navbar__inner {
    padding: 14px 18px;
  }
  /* .topbar__hours span {
    display: none;
  } */
  .topbar__hours {
    padding: 8px 12px;
  }
  .hero__content h1 {
    font-size: 42px;
    line-height: 40px;
  }
  /* .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  } */

  /* .menu-section {
    padding: 64px 0 56px;
  } */
  /* .menu-header h2 {
    font-size: 30px;
  } */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex-shrink: 0;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .menu-card__name {
    font-size: 15px;
  }
  .menu-card__info {
    padding: 13px 12px;
  }

  .about-text {
    padding: 40px 24px;
  }
  /* .about-text h2 {
    font-size: 28px;
  } */

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .insta-header__title {
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 48px 18px 32px;
    gap: 30px;
  }
  .footer-bottom p {
    padding: 18px;
  }
}
@media (max-width: 550px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__content h1 {
    font-size: 47px;
    line-height: 41px;
  }
  .insta-header__title {
    flex-direction: column;
    align-items: start;
  }
  .about-text {
    padding: 24px 24px;
  }
  .about-text h2 {
    font-size: 38px;
    line-height: 39px;
  }
  .menu-header h2 {
    font-size: 32px;
  }
}
@media (max-width: 460px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .hero__content h1 {
    font-size: 36px;
    line-height: 40px;
  }
}
@media (max-width: 360px) {
  .topbar__inner {
    flex-direction: column;
  }
  .hero__content h1 {
    font-size: 32px;
    line-height: 40px;
  }
}
/* =========================
   TABLET
========================= */
@media (max-width: 1148px) {
  .about-media img {
    max-height: unset;
  }
}
@media (max-width: 1024px) {
  .about-text {
    padding: 32px;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .about-text p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .about-media img {
    max-height: 620px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    padding: 30px 24px;
    gap: 16px;
  }

  .about-text h2 {
    font-size: 32px;
    line-height: 1.1;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.65;
  }

  .about-media {
    border-left: 0;
    border-top: 1px solid rgb(126 97 53);
    height: 360px;
  }

  .about-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .about-text {
    padding: 26px 20px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 13.5px;
  }

  .about-media {
    height: 280px;
  }
}

/* Header address (desktop only) */
.navbar__address {
  margin-left: auto;
  margin-right: 26px;
}
@media (max-width: 768px) {
  .navbar__address {
    display: none;
  }
}
