@import url('/custom/assets/fonts/fonts.css');

:root {
  --primary:        #93807b;
  --primary-dark:   #6e5c58;
  --primary-light:  #e9e1dd;
  --ink:            #2e1513;
  --ink-soft:       #43241f;
  --wine:           #7a1f1c;
  --sand:           #dccdb2;
  --paper:          #f7f2ea;
  --white:          #fffdf9;
  --text:           #2b211f;
  --text-soft:      #62524e;
  --line:           #ddd2c6;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --radius:   6px;
  --shadow:   0 10px 30px -14px rgba(46, 21, 19, .35);
  --ease:     .25s ease;
  --wrap:     1200px;
  --logo-h:   100px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
}

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

a { color: var(--wine); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

.fi-page { min-height: 100vh; display: flex; flex-direction: column; }
.fi-page > main { flex: 1 0 auto; }

.fi-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Main menu ---------- */
.outer-mainmenu-container,
.site-header {
  background-color: var(--ink);
  border-bottom: 4px solid var(--primary);
  position: relative;
  z-index: 20;
}

.fi-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }

.fi-logo { display: block; flex: 0 0 auto; line-height: 0; }
.fi-logo .logo { height: var(--logo-h); width: auto; }

.fi-nav__list {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  gap: 4px 6px; list-style: none; margin: 0; padding: 0;
}

.fi-nav__link {
  display: block; padding: 10px 14px;
  font-size: .95rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sand); border-radius: var(--radius); position: relative;
}
.fi-nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.fi-nav__link:hover { color: var(--white); }
.fi-nav__link:hover::after, .fi-nav__link.is-active::after { transform: scaleX(1); }
.fi-nav__link.is-active { color: var(--white); }

.fi-nav__cta { margin-left: 8px; }
.fi-nav__link--cta { background: var(--primary); color: var(--ink); font-weight: 600; padding: 10px 18px; }
.fi-nav__link--cta::after { display: none; }
.fi-nav__link--cta:hover, .fi-nav__link--cta.is-active { background: var(--sand); color: var(--ink); }

.fi-nav__toggle {
  display: none; flex-direction: column; gap: 6px; padding: 12px;
  background: transparent; border: 1px solid var(--primary); border-radius: var(--radius); cursor: pointer;
}
.fi-nav__toggle span { display: block; width: 26px; height: 2px; background: var(--sand); transition: transform var(--ease), opacity var(--ease); }
.fi-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.fi-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fi-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
  :root { --logo-h: 100px; }
  .fi-nav { flex-wrap: wrap; }
  .fi-nav__toggle { display: flex; }
  .fi-nav__list { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .fi-nav__list.is-open { display: flex; }
  .fi-nav__link { padding: 14px 8px; border-bottom: 1px solid var(--ink-soft); border-radius: 0; }
  .fi-nav__link::after { display: none; }
  .fi-nav__cta { margin: 12px 0 0; }
  .fi-nav__link--cta { text-align: center; border-radius: var(--radius); border-bottom: 0; }
}

/* ---------- Breadcrumb ---------- */
.fi-breadcrumb { padding-top: 18px; padding-bottom: 4px; font-size: .88rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; color: var(--text-soft); }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; padding-right: 10px; color: var(--primary); float: none; }
.breadcrumb-item a { color: var(--text-soft); }
.breadcrumb-item a:hover { color: var(--wine); }
.breadcrumb-item.active { color: var(--text); }

/* ---------- Heroes ---------- */
.home-hero { background: var(--ink); color: var(--sand); padding: 72px 0 64px; position: relative; overflow: hidden; }
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(147,128,123,.35), transparent 55%);
}
.home-hero__inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.home-hero__eyebrow { margin: 0 0 18px; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.home-hero__title { color: var(--white); margin-bottom: .5em; }
.home-hero__text { font-size: 1.15rem; color: var(--sand); }
.home-hero__text p:last-child { margin-bottom: 0; }
.home-hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; }
.home-hero__cats a {
  display: inline-block; padding: 9px 20px; border: 1px solid var(--primary); border-radius: 999px;
  color: var(--sand); font-size: .92rem; font-weight: 500;
}
.home-hero__cats a:hover { background: var(--primary); color: var(--ink); }

.cat-hero { background: var(--primary-light); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.cat-hero h1 { margin-bottom: .35em; }
.cat-hero__intro { max-width: 720px; font-size: 1.15rem; color: var(--text-soft); margin: 0; }

/* ---------- Layout ---------- */
.inner-wrapper { padding: 48px 0 24px; }
.fi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 991px) { .fi-layout { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Home category sections ---------- */
.cat-section { margin-bottom: 56px; }
.cat-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--primary); margin-bottom: 24px; padding-bottom: 8px; }
.cat-section__name { margin: 0; font-size: 1.7rem; }
.cat-section__more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* ---------- Article cards ---------- */
.art-grid-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.art-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--ease), box-shadow var(--ease); display: flex; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.art-card > a { display: flex; flex-direction: column; width: 100%; color: inherit; }
.art-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--primary-light); }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .art-card__img img { transform: scale(1.05); }
.art-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.art-card__cat { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px; }
.art-card__title { font-size: 1.2rem; margin: 0 0 .5em; }
.art-card__excerpt {
  font-size: .95rem; color: var(--text-soft); margin: 0 0 1em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card__more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--wine); }
.art-card__more::after { content: ' →'; }
.art-card:hover .art-card__title { color: var(--wine); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; }
.page-link { display: block; min-width: 42px; padding: 8px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
a.page-link:hover { border-color: var(--primary); color: var(--wine); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.page-item.disabled .page-link { color: var(--primary); background: transparent; }

/* ---------- Article ---------- */
.article { max-width: 780px; }
.article-cat {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-light); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark);
}
.article-cat:hover { background: var(--primary); color: var(--ink); }
.article-title { margin-bottom: .3em; }
.article-date { font-size: .9rem; color: var(--text-soft); margin-bottom: 28px; }
.article-hero { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; aspect-ratio: 97 / 52; object-fit: cover; }

.article-content, .page-content { overflow-wrap: break-word; }
.article-content > p:first-child { font-size: 1.2rem; color: var(--text-soft); }
.article-content h2, .article-content h3, .page-content h2, .page-content h3 { margin-top: 1.8em; }
.article-content a, .page-content a { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }
.article-content ul, .article-content ol, .page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article-content li { margin-bottom: .4em; }
.article-content li::marker { color: var(--primary); }
.article-content img { border-radius: var(--radius); margin: 1.5em 0; }
.article-content blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--primary);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink-soft);
}
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.article-content th, .article-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.related-section { margin-top: 56px; padding: 56px 0 48px; background: var(--primary-light); border-top: 1px solid var(--line); }
.related-label { font-size: 1.6rem; margin-bottom: 28px; }

/* ---------- Sidebar ---------- */
.sidebar-inner { position: sticky; top: 24px; }
.sidebar-newsletter { background: var(--ink); color: var(--sand); padding: 28px 26px; border-radius: var(--radius); margin-bottom: 32px; border-top: 4px solid var(--primary); }
.sidebar-newsletter__eyebrow { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.sidebar-newsletter__title { color: var(--white); font-size: 1.5rem; margin-bottom: .4em; }
.fi-newsletter-cta__text { font-size: .96rem; margin-bottom: 1.2em; }
.sidebar-newsletter__btn { display: inline-block; padding: 11px 22px; background: var(--primary); color: var(--ink); font-weight: 600; border-radius: var(--radius); }
.sidebar-newsletter__btn:hover { background: var(--sand); color: var(--ink); }

.sidebar-cats__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px; }
.sidebar-cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sidebar-cats li { border-bottom: 1px solid var(--line); }
.sidebar-cats a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 500; }
.sidebar-cats a:hover { color: var(--wine); padding-left: 10px; }
.sidebar-cats a { transition: padding var(--ease), color var(--ease); }

/* ---------- Confirmation ---------- */
.confirmation-wrap { display: flex; justify-content: center; padding: 24px 0 48px; }
.confirmation-box { max-width: 640px; text-align: center; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow); }
.confirmation-box__icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--ink); color: var(--sand); font-size: 1.9rem; line-height: 64px; }
.confirmation-box__text { color: var(--text-soft); margin-bottom: 1.6em; }
.confirmation-box__link { display: inline-block; padding: 12px 26px; background: var(--ink); color: var(--sand); font-weight: 600; border-radius: var(--radius); }
.confirmation-box__link:hover { background: var(--primary); color: var(--ink); }

/* ---------- Footer ---------- */
.footer-wrapper { margin-top: 64px; background: var(--ink); color: var(--sand); border-top: 4px solid var(--primary); padding: 44px 0 36px; text-align: center; }
.footer-logo { display: inline-block; margin-bottom: 14px; line-height: 0; }
.footer-logo img { height: 76px; width: auto; }
.footer-copy { font-size: .9rem; margin-bottom: 14px; color: var(--sand); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer-nav a { color: var(--sand); font-size: .92rem; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; }
.footer-nav a:hover { color: var(--white); }

.cookieicon { background-color: var(--primary-dark); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
