﻿:root {
  --brand: #ec4249;
  --brand-dark: #c43339;
  --ink: #2a2a2a;
  --muted: #5c5c5c;
  --line: #e4e0dc;
  --paper: #faf7f4;
  --cream: #f3ebe3;
  --white: #ffffff;
  --header: #2f1f1c;
  --max: 1120px;
  --font: "Montserrat", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(236, 66, 73, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 31, 28, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 40%, var(--cream) 100%);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 15px;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--header) 0%, #4a2c28 55%, #5c3430 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

/* Nav */
.site-nav {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 0.25rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-parent,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-list > li > a:hover,
.nav-parent:hover,
.has-sub.is-open > .nav-parent,
.has-sub:hover > .nav-parent {
  color: #fff;
  background: rgba(236, 66, 73, 0.35);
}

.nav-parent-icon {
  padding-left: 0.2rem;
  padding-right: 0.55rem;
}

.nav-parent-icon::after,
.has-sub > .nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.sub-menu,
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--line);
  z-index: 60;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}

.has-sub:hover > .sub-menu,
.has-sub.is-open > .sub-menu,
.has-sub:hover > .mega-menu,
.has-sub.is-open > .mega-menu {
  display: block;
}

.mega-menu {
  display: none;
  width: min(920px, 92vw);
  padding: 1.25rem;
}

.has-sub:hover > .mega-menu,
.has-sub.is-open > .mega-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.mega-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.mega-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.mega-col ul,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col a,
.sub-menu a {
  display: block;
  padding: 0.35rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.mega-col a:hover,
.sub-menu a:hover {
  background: var(--cream);
  color: var(--brand-dark);
}

.has-sub {
  display: flex;
  align-items: stretch;
}

.has-sub > .nav-link {
  padding-right: 0.2rem;
}

/* Main / pages */
.site-main {
  padding-bottom: 3rem;
}

.page-header {
  background:
    linear-gradient(120deg, rgba(47, 31, 28, 0.92), rgba(236, 66, 73, 0.75)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--white);
  padding: 2.25rem 0 2rem;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
}

.content-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 2rem;
}

.page-content h2,
.page-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--header);
}

.page-content .product_list,
.page-content ul.product_list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-content .product_list > li,
.page-content ul.product_list > li {
  flex: 1 1 200px;
  max-width: 260px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem;
}

.page-content .product_list img {
  width: 100%;
  object-fit: contain;
}

.page-content .lv_cat_header,
.page-content .cat-name {
  margin-bottom: 1rem;
}

.page-content .primary_block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-content .pb-left-column,
.page-content .pb-right-column {
  flex: 1 1 280px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
}

.page-content th,
.page-content td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}

/* Home */
.home-hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(47, 31, 28, 0.25) 0%, rgba(47, 31, 28, 0.78) 100%),
    linear-gradient(135deg, #5c3430, #ec4249 80%);
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}

.home-hero .wrap {
  padding: 3.5rem 0 3rem;
}

.home-hero .brand-mark {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.home-hero .tagline {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

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

.home-section {
  padding: 2.75rem 0 1rem;
}

.home-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  margin: 0 0 0.4rem;
}

.home-section .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.home-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-cards a {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 1.1rem;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(145deg, #3d2824, #6b3a35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cards a:nth-child(2) {
  background: linear-gradient(145deg, #8a3035, #ec4249);
}

.home-cards a:nth-child(3) {
  background: linear-gradient(145deg, #2f1f1c, #5c4038);
}

.home-cards a:nth-child(4) {
  background: linear-gradient(145deg, #4a3520, #a0673a);
}

.home-cards a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.home-cards strong {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.home-cards span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.home-links-slot {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--header);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffb3b7;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
}

.footer-grid > div {
  flex: 1 1 180px;
}

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

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
}

.site-footer h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: #ffb3b7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer li a {
  font-size: 0.88rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Blog list (r-template_blog) slight polish when embedded */
.blog-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .home-hero .brand-mark {
    animation: rise 0.7s ease both;
  }
  .home-hero .tagline {
    animation: rise 0.7s ease 0.12s both;
  }
  .cta-row {
    animation: rise 0.7s ease 0.22s both;
  }
  .home-cards a {
    animation: rise 0.55s ease both;
  }
  .home-cards a:nth-child(2) { animation-delay: 0.08s; }
  .home-cards a:nth-child(3) { animation-delay: 0.16s; }
  .home-cards a:nth-child(4) { animation-delay: 0.24s; }
}

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

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .has-sub {
    flex-wrap: wrap;
  }

  .sub-menu,
  .mega-menu,
  .has-sub:hover > .sub-menu,
  .has-sub:hover > .mega-menu {
    display: none;
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
  }

  .has-sub.is-open > .sub-menu {
    display: block;
  }

  .has-sub.is-open > .mega-menu {
    display: flex;
  }

  .mega-col a,
  .sub-menu a {
    color: rgba(255, 255, 255, 0.92);
  }

  .mega-col a:hover,
  .sub-menu a:hover {
    background: rgba(236, 66, 73, 0.35);
    color: #fff;
  }

  .mega-title {
    color: #ffb3b7;
    padding-left: 1rem;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 1.5rem 0;
  }

  .content-wrap {
    padding: 1rem;
  }
}

