/*
Theme Name: Lyon
Theme URI: https://fenetrepvclyon.fr/
Author: Buyieftin SRL
Description: Theme WordPress ultralight pentru site-uri locale de ferestre PVC, portes, garage si menuiserie, fara Elementor.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lyon
*/

:root {
  --primary: #d2e761;
  --dark: #101417;
  --ink: #20282e;
  --muted: #65727b;
  --line: #dfe5e8;
  --soft: #f4f7f2;
  --white: #fff;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }
.topbar {
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a { color: var(--primary); font-weight: 900; }
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(16,20,23,.08);
  box-shadow: 0 10px 30px rgba(16,20,23,.06);
}
.nav {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--dark);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.site-nav ul {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 800;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--soft); }
.mobile-menu-item { display: none; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  background: var(--dark);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}
.button.primary {
  background: var(--primary);
  color: var(--dark);
}
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px;
  background: rgba(16,20,23,.96);
  box-shadow: 0 -12px 30px rgba(16,20,23,.18);
}
.mobile-cta .button { width: 100%; }
footer {
  background: #0b0f12;
  color: rgba(255,255,255,.74);
  padding: 34px 0;
  font-size: 14px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--primary); }
.wp-topbar { background: var(--dark); color: #fff; font-size: 14px; }
.wp-topbar .container,
.wp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wp-topbar .container { min-height: 38px; }
.wp-topbar a { color: var(--primary); font-weight: 900; text-decoration: none; }
.wp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(16,20,23,.08);
  box-shadow: 0 10px 30px rgba(16,20,23,.06);
}
.wp-header .container { min-height: 76px; }
.wp-brand { display: flex; align-items: center; gap: 12px; color: var(--dark); font-weight: 900; text-decoration: none; }
.wp-brand span:first-child {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.wp-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.wp-nav a { color: var(--dark); text-decoration: none; font-weight: 900; }
.wp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--dark);
  font-weight: 900;
  text-decoration: none;
}
.wp-main { padding: 58px 0; }
.wp-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 32px; align-items: start; }
.wp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(16,20,23,.07);
}
.wp-post-list { display: grid; gap: 20px; }
.wp-archive-head {
  margin: 0 0 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.wp-archive-head h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}
.wp-archive-head p {
  margin: 10px 0 0;
  color: var(--muted);
}
.wp-post-title { margin: 0 0 8px; font-size: clamp(26px, 4vw, 42px); line-height: 1.12; letter-spacing: 0; }
.wp-post-title a { text-decoration: none; color: var(--dark); }
.wp-meta { color: var(--muted); font-weight: 800; font-size: 14px; }
.wp-content { margin-top: 18px; }
.wp-content h2 { margin: 34px 0 12px; color: var(--dark); font-size: clamp(24px, 3vw, 34px); line-height: 1.16; }
.wp-content h3 { margin: 26px 0 10px; color: var(--dark); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.wp-content p { margin: 0 0 16px; }
.wp-content a:not(.button) { color: #6f8408; text-decoration-thickness: 2px; text-decoration-color: var(--primary); text-underline-offset: 3px; }
.wp-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 8px 0;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}
.wp-content .button.primary {
  background: var(--primary);
  color: var(--dark);
}
.wp-content .blog-cta-center {
  text-align: center;
  margin: 32px 0;
}
.wp-featured-image {
  display: block;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}
.wp-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.wp-post-list .wp-featured-image { margin: -24px -24px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.wp-sidebar { display: grid; gap: 18px; }
.wp-sidebar h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.18;
}
.wp-sidebar p {
  margin: 0 0 14px;
  color: var(--muted);
}
.wp-sidebar ul:not(.wp-tag-list) {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wp-sidebar ul:not(.wp-tag-list) a {
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
}
.wp-sidebar ul:not(.wp-tag-list) a:hover { color: #6f8408; }
.wp-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wp-tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.wp-tag-list a:hover {
  background: var(--primary);
}
.wp-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.wp-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wp-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-footer-links a { color: inherit; text-decoration: none; }
.wp-footer-links a:hover { color: var(--dark); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 820px) {
  body.has-sticky-cta { padding-bottom: 72px; }
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 24px 60px rgba(16,20,23,.16);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    display: grid;
    gap: 6px;
  }
  .site-nav a {
    padding: 13px 14px;
    background: var(--soft);
  }
  .site-nav .button {
    width: 100%;
    background: var(--primary);
    color: var(--dark);
  }
  .mobile-menu-item { display: block; }
  .nav > .button { display: none; }
  .mobile-cta { display: block; }
  .wp-topbar { display: none; }
  .wp-header .container { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .wp-nav ul { flex-wrap: wrap; gap: 12px 18px; }
  .wp-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, 1160px); }
}
