:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --ink: #222222;
  --ink-muted: rgba(35, 35, 35, 0.72);
  --line: #ddd;
  --accent: #c45c26;
  --accent-dark: #9a4518;
  --header-h: 4.5rem;
  --max: 920px;
  --max-wide: 1100px;
  --font: "Open Sans", "Segoe UI", sans-serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 92, 38, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f5f2 0%, var(--bg) 40%, #eee 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
  animation: brand-glow 4s ease-in-out infinite;
}

@keyframes brand-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand__name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-brand__tag {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* Nav */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 0.75rem;
  max-width: var(--max-wide);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.site-nav__item {
  position: relative;
}

.site-nav__item > a,
.site-nav__parent {
  display: block;
  padding: 0.7rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.site-nav__item > a:hover,
.site-nav__parent:hover,
.site-nav__item.is-active > a,
.site-nav__item.is-active > .site-nav__parent {
  color: var(--accent);
  text-decoration: none;
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 50;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav__dropdown a:hover {
  background: #f7f5f2;
  color: var(--accent);
}

.has-dropdown:hover > .site-nav__dropdown,
.has-dropdown.is-open > .site-nav__dropdown {
  display: block;
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.site-main--wide {
  max-width: var(--max-wide);
}

.page-header {
  margin: 0 0 1.5rem;
  animation: fade-up 0.6s ease both;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.content-panel {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  animation: fade-up 0.7s ease 0.08s both;
}

.content-panel h2,
.content-panel h3,
.content-panel h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.content-panel h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.65rem;
}

.content-panel h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-panel p {
  margin: 0 0 1rem;
}

.content-panel ul,
.content-panel ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.content-panel li {
  margin-bottom: 0.35rem;
}

.content-figure {
  margin: 0 0 1.25rem;
}

.content-figure img {
  width: 100%;
}

.list-item {
  margin: 0 0 0.35rem !important;
  padding-left: 0.25rem;
}

/* Homepage */
.home-hero {
  position: relative;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: flex-end;
  margin: 0 0 2rem;
  background:
    linear-gradient(160deg, rgba(34, 24, 16, 0.55), rgba(34, 24, 16, 0.25)),
    radial-gradient(ellipse at 70% 40%, #e8b86a 0%, #c45c26 40%, #5c2e12 100%);
  color: #fff;
  overflow: hidden;
  animation: hero-in 0.9s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

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

.home-hero__inner {
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.home-hero__brand {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.05;
}

.home-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn--primary {
  background: #fff;
  color: var(--ink);
}

.btn--primary:hover {
  background: #f3ebe3;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-intro {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
  animation: fade-up 0.7s ease 0.15s both;
}

.home-intro p {
  margin: 0 auto 1rem;
  max-width: 38rem;
}

.home-links-wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* Product / card grids only where interactive listing */
.product-grid,
.recipe-grid,
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.product-card,
.recipe-card,
.blog-card {
  flex: 1 1 240px;
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.product-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card h3,
.recipe-card h3,
.blog-title {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.product-card .price {
  font-weight: 600;
  color: var(--accent-dark);
}

.blog-container {
  width: 100%;
}

.blog-preview p {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #2a221c;
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

.site-footer__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__tag {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.site-footer__nav,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.site-footer__nav a,
.site-footer__social a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__social a:hover {
  color: #f0c28a;
  text-decoration: none;
}

.site-footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

.romlifooter {
  margin-top: 0.5rem;
}

/* Article container styles kept in r-template_article.php */

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

  .site-nav {
    display: none;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .site-nav__dropdown {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding-left: 0.75rem;
  }

  .has-dropdown.is-open > .site-nav__dropdown {
    display: block;
  }

  .home-hero {
    min-height: 55vh;
  }
}
