/* TecnoBar&Food — site redesign */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --red: #E20026;
  --purple: #672160;
  --orange: #ef7c00;
  --text: #2a2430;
  --muted: #5c5360;
  --bg: #f7f2f4;
  --white: #ffffff;
  --line: #e4d5dc;
  --max: 1100px;
  --font: 'Barlow', sans-serif;
  --display: 'Source Serif 4', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(226, 0, 38, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(103, 33, 96, 0.14), transparent 50%),
    linear-gradient(180deg, #faf6f7 0%, var(--bg) 40%, #f3ebe8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, var(--purple) 0%, #4a1548 55%, var(--red) 140%);
  color: var(--white);
  border-bottom: 4px solid var(--orange);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: inherit;
  opacity: 0.95;
}

.brand img {
  height: 52px;
  width: auto;
  background: var(--white);
  padding: 6px 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.site-nav {
  background: rgba(0, 0, 0, 0.22);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-toggle {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item:hover > a,
.nav-item:focus-within > a {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

.nav-item.has-sub:hover .subnav,
.nav-item.has-sub:focus-within .subnav {
  display: flex;
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(42, 36, 48, 0.18);
  z-index: 40;
  border-top: 3px solid var(--orange);
}

.subnav a {
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}

.subnav a:hover {
  background: #fff4e8;
  color: var(--red);
  text-decoration: none;
}

.nav-burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.hero {
  position: relative;
  min-height: clamp(320px, 58vh, 520px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(105deg, rgba(42, 10, 40, 0.88) 0%, rgba(226, 0, 38, 0.55) 55%, rgba(239, 124, 0, 0.35) 100%),
    url('/assets/img/hero.jpg') center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 56px;
  width: 100%;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.05;
}

.hero p {
  margin: 0 0 22px;
  max-width: 36rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--purple);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.stat {
  flex: 1 1 140px;
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  color: var(--red);
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-header {
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
}

.page-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--purple);
  line-height: 1.2;
}

.page-header .lede {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 26px;
}

.content-block h2,
.content-block h3 {
  font-family: var(--display);
  color: var(--purple);
  margin: 1.4em 0 0.5em;
}

.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block ul,
.content-block ol {
  padding-left: 1.25rem;
}

.content-block li {
  margin-bottom: 0.35em;
}

.content-block .meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
  padding: 16px 18px;
  background: linear-gradient(90deg, #fff4e8, #f8eef5);
  border-left: 4px solid var(--orange);
}

.content-block .meta-box div strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.card-link {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(103, 33, 96, 0.12);
  text-decoration: none;
  color: inherit;
}

.card-link h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--purple);
  font-size: 1.2rem;
}

.card-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.home-intro .lead {
  flex: 2 1 320px;
}

.home-intro .aside {
  flex: 1 1 220px;
  background: var(--purple);
  color: var(--white);
  padding: 22px;
}

.home-intro .aside h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.25rem;
}

.home-intro .aside p,
.home-intro .aside li {
  color: rgba(255, 255, 255, 0.92);
}

.home-intro .aside a {
  color: #ffd7a8;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-list time {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer {
  background: linear-gradient(180deg, #3d153c, #2a0e29);
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  padding: 36px 20px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: flex-start;
}

.footer-nav a {
  color: #ffd7a8;
  font-size: 0.92rem;
}

.footer-copy {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Blog listing */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.blog-card {
  flex: 1 1 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 20px;
}

.blog-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.blog-title a {
  color: var(--purple);
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Article container styles kept compatible */
.romlicontainer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 40px;
}

@media (max-width: 860px) {
  .nav-burger {
    display: inline-flex;
  }

  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0 0 10px;
  }

  .nav-inner.is-open {
    display: flex;
  }

  .nav-item.has-sub .subnav {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .nav-item.has-sub.is-open .subnav {
    display: flex;
  }

  .subnav a {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .subnav a:hover {
    background: rgba(239, 124, 0, 0.35);
    color: var(--white);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.stats,
.home-intro,
.page-header,
.content-block {
  animation: fade-up 0.55s ease both;
}

.stats {
  animation-delay: 0.08s;
}

.home-intro {
  animation-delay: 0.16s;
}
