/*
Theme Name: HYWOOD Standalone
Theme URI: https://hywoodfurniture.com/
Author: HYWOOD
Description: Independent code theme for HYWOOD. No Blocksy or Elementor dependency.
Version: 0.4.3
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: hywood
*/

:root {
  --hywood-ink: #1f2420;
  --hywood-muted: #697069;
  --hywood-paper: #fff;
  --hywood-green: #143f31;
  --hywood-gold: #b79858;
  --hywood-line: rgba(31, 36, 32, .14);
  --hywood-shell: min(1290px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hywood-ink);
  background: var(--hywood-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
.hywood-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
  padding: 10px 14px; clip: auto; background: #fff; color: #111;
}
.site-header {
  display: block !important;
  visibility: visible !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(31, 36, 32, .08);
  background: #ECEEF1;
  box-shadow: 0 10px 30px rgba(28, 25, 22, .05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-header__inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.site-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}
.site-brand::after {
  content: "";
  position: absolute;
  right: -18px;
  width: 1px;
  height: 28px;
  background: linear-gradient(transparent, rgba(139, 31, 39, .28), transparent);
}
.site-brand img { display: block; width: auto; height: 60px; max-width: none; object-fit: contain; }
.site-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.site-nav {
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-nav ul { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative;
  display: block;
  min-height: 40px;
  padding: 0;
  border-radius: 0;
  color: #1f2937;
  text-decoration: none;
  font-family: Figtree, "Noto Sans SC", sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  transition: color .22s ease, transform .22s ease;
}
.site-nav a:hover { color: #8B1A1A; transform: translateY(-1px); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a {
  color: #8B1A1A;
  background: transparent;
  box-shadow: none;
}
.site-header__tools { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.site-socials { display: flex; align-items: center; gap: 5px; padding-right: 2px; }
.site-socials a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.site-socials a:hover { background: #f2eee9; transform: translateY(-2px); }
.site-socials svg { display: block; width: 17px; height: 17px; fill: currentColor; }
.site-socials a:nth-child(1) { color: #557dbc; }
.site-socials a:nth-child(2) { color: #ff0000; }
.site-socials a:nth-child(3) { color: #fc471e; }
.site-socials a:nth-child(4) { color: #111; }
.menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(31, 36, 32, .1);
  border-radius: 999px;
  background: #f4f1ed;
  padding: 8px 13px 8px 15px;
  color: #22251f;
  font: 700 12px/1 Figtree, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; display: inline-flex; width: 19px; height: 14px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle__icon span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease; }
.menu-toggle[aria-expanded="true"] { color: #fff; border-color: #8f2028; background: #8f2028; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(229, 231, 234, .5); }
.menu-backdrop[hidden] { display: none; }
.site-main { min-height: 55vh; overflow: clip; }
#footer {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  clear: both;
}
.hy-footer {
  display: block !important;
  visibility: visible !important;
}
.hywood-page-fallback { width: var(--hywood-shell); margin: 48px auto 80px; }
.site-footer { padding: 58px 0 26px; color: #fff; background: #102e25; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 38px; }
.site-footer li + li { margin-top: 8px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.76); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__bar { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

@media (max-width: 1120px) {
  .site-socials { display: none; }
  .site-nav a { padding-inline: 10px; font-size: 14px; }
}

@media (max-width: 1100px) {
  body.menu-open { overflow: hidden; }
  :root { --hywood-shell: min(100% - 28px, 1280px); }
  .hywood-shell { width: min(100% - 28px, 1200px); }
  .site-header__inner { min-height: 72px; gap: 10px; }
  .site-brand::after { display: none; }
  .site-brand img { width: auto; height: 42px; max-height: 42px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: block;
    position: absolute;
    inset: calc(100% + 10px) 14px auto;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(31, 36, 32, .1);
    border-radius: 26px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 55px rgba(31, 25, 22, .17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 6px; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f6f3ef;
    color: #343632;
    font-size: 15px;
  }
  .site-nav a::after { content: "\2192"; font-size: 17px; opacity: .42; transition: transform .2s ease; }
  .site-nav a:hover::after { transform: translateX(3px); }
  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a,
  .site-nav .current-menu-ancestor > a {
    border-color: #8f2028;
    background: linear-gradient(135deg, #a32932, #771820);
    color: #fff;
  }
  .site-nav .current-menu-item > a::after,
  .site-nav .current_page_item > a::after,
  .site-nav .current-menu-ancestor > a::after { opacity: 1; }
  .site-header__tools { gap: 8px; }
  .site-header__tools .trp-language-switcher { margin: 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav a, .site-socials a, .menu-toggle__icon span { transition: none; }
}
