/*
Theme Name:  Fratex One
Theme URI:   https://www.fratex.sk
Author:      FRATEX
Author URI:  https://www.fratex.sk
Description: Elegantná, boutique téma pre FRATEX - špecialistu na bytový textil od roku 1999. Teplá ivory paleta, mosadzné akcenty, Playfair Display & Lato.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fratex-one
Tags:        custom-menu, custom-logo, full-width-template, footer-widgets, responsive-layout
*/

/* ─────────────────────────────────────────────────────────────
   1. Design tokens
   ───────────────────────────────────────────────────────────── */
:root {
  /* Palette — warm ivory & espresso with brass accent                */
  --cream:         #F6F1E8;   /* primary background: warm ivory        */
  --cream-dark:    #ECE2CF;   /* alt background: deeper parchment      */
  --cream-soft:    #FBF8F2;   /* card / elevated surface               */
  --charcoal:      #1F1914;   /* headings: near-black espresso         */
  --charcoal-mid:  #5E5248;   /* body copy: warm medium                */
  --brown:         #8A6A3C;   /* primary accent: refined camel         */
  --brown-light:   #BA9561;   /* highlight: brass/caramel              */
  --brown-dark:    #5A3E1E;   /* deep accent: rich espresso            */
  --white:         #FFFFFF;
  --line:          rgba(90, 62, 30, 0.15);
  --line-strong:   rgba(90, 62, 30, 0.35);

  /* Elevation */
  --shadow-sm:   0 1px 2px rgba(31, 25, 20, 0.04), 0 1px 3px rgba(31, 25, 20, 0.06);
  --shadow:      0 4px 14px rgba(31, 25, 20, 0.06), 0 10px 40px rgba(31, 25, 20, 0.06);
  --shadow-lg:   0 8px 24px rgba(31, 25, 20, 0.08), 0 24px 60px rgba(31, 25, 20, 0.12);

  /* Radius */
  --radius-sm:   2px;
  --radius:      4px;
  --radius-lg:   10px;

  /* Layout */
  --max-width:   1200px;
  --wide-width:  1400px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition:  0.35s var(--ease);

  /* Typography */
  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display-scale: 1;
}

/* ─────────────────────────────────────────────────────────────
   2. Reset & base
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal-mid);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brown-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brown-light); color: var(--charcoal); }

/* ─────────────────────────────────────────────────────────────
   3. Typography
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem);       font-weight: 500; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem);   font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brown-dark); }

p { margin-bottom: 1rem; color: var(--charcoal-mid); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--brown-light); }

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--charcoal);
  padding: 1.25rem 0 1.25rem 1.75rem;
  border-left: 2px solid var(--brown-light);
}

/* ─────────────────────────────────────────────────────────────
   4. Layout helpers
   ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container--wide { max-width: var(--wide-width); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  color: var(--charcoal-mid);
  font-size: 1.02rem;
}
.section-divider {
  border: 0;
  width: 56px;
  height: 2px;
  background: var(--brown);
  margin: 1rem auto 3rem;
  position: relative;
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--brown);
  border-radius: 50%;
  transform: translateY(-50%);
}
.section-divider::before { left: -14px; }
.section-divider::after  { right: -14px; }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ─────────────────────────────────────────────────────────────
   5. Accessibility
   ───────────────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: 8px;
  z-index: 10000;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; color: var(--cream); outline: 2px solid var(--brown-light); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────
   6. Buttons
   ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg:    var(--charcoal);
  --btn-fg:    var(--cream);
  --btn-brd:   var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--btn-brd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  border-radius: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  --btn-bg:   var(--brown-dark);
  --btn-brd:  var(--brown-dark);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn--primary {
  --btn-bg:   var(--brown-dark);
  --btn-brd:  var(--brown-dark);
  --btn-fg:   var(--cream);
}
.btn--primary:hover {
  --btn-bg:   var(--charcoal);
  --btn-brd:  var(--charcoal);
}
.btn--outline {
  --btn-bg:   transparent;
  --btn-fg:   var(--charcoal);
  --btn-brd:  var(--charcoal);
}
.btn--outline:hover {
  --btn-bg:   var(--charcoal);
  --btn-fg:   var(--cream);
  --btn-brd:  var(--charcoal);
  color: var(--cream);
}
.btn--gold {
  --btn-bg:   transparent;
  --btn-fg:   var(--brown);
  --btn-brd:  var(--brown);
}
.btn--gold:hover {
  --btn-bg:   var(--brown);
  --btn-fg:   var(--cream);
  --btn-brd:  var(--brown);
  color: var(--cream);
}

/* ─────────────────────────────────────────────────────────────
   7. Navbar
   ───────────────────────────────────────────────────────────── */
#nav-toggle { display: none; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(246, 241, 232, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar.scrolled .navbar__inner { height: 72px; }

.navbar__logo { display: flex; align-items: center; }
.navbar__logo-img {
  max-height: 52px;
  width: auto;
  transition: max-height var(--transition);
}
.navbar.scrolled .navbar__logo-img { max-height: 42px; }
.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--charcoal);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
}
.navbar__logo-text::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: var(--brown);
}

.navbar__links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.navbar__links a,
.navbar__links li > a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
}
.navbar__links a::after,
.navbar__links li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 0;
  height: 1px;
  background: var(--brown);
  transition: width var(--transition), left var(--transition);
}
.navbar__links a:hover::after,
.navbar__links li.current-menu-item > a::after,
.navbar__links li > a:hover::after {
  width: calc(100% - 2.2rem);
  left: 1.1rem;
}
.navbar__links a:hover,
.navbar__links li.current-menu-item > a { color: var(--brown-dark); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

/* ─────────────────────────────────────────────────────────────
   8. Body offset for fixed nav
   ───────────────────────────────────────────────────────────── */
body:not(.home) main { padding-top: 86px; }
body.no-hero main { padding-top: 86px; }

/* ─────────────────────────────────────────────────────────────
   9. Hero (image-free by default, image optional)
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 1.5rem 80px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(186, 149, 97, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(138, 106, 60, 0.10), transparent 55%),
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 40%, var(--cream-dark) 100%);
  isolation: isolate;
}

/* Elegant subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(90, 62, 30, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Corner ornaments */
.hero::after {
  content: '';
  position: absolute;
  inset: 2.5rem;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: -1;
}

/* Optional background image variants (only if customizer supplies) */
.hero.hero--has-bg {
  background:
    linear-gradient(180deg, rgba(31, 25, 20, 0.25) 0%, rgba(31, 25, 20, 0.55) 100%),
    var(--hero-bg, linear-gradient(180deg, var(--cream-soft), var(--cream-dark))) center/cover no-repeat;
}
.hero.hero--has-bg::before { display: none; }
.hero.hero--has-bg::after  { border-color: rgba(246, 241, 232, 0.35); }
.hero.hero--has-bg .hero__content { color: var(--cream); }
.hero.hero--has-bg .hero__subtitle { color: rgba(246, 241, 232, 0.9); }
.hero.hero--has-bg .hero__eyebrow { color: var(--brown-light); }
.hero.hero--has-bg .hero__title { color: var(--cream); }

.hero__content {
  position: relative;
  max-width: 820px;
  text-align: center;
  z-index: 1;
  padding: 1rem;
}
.hero__logo {
  max-width: 260px;
  width: 55%;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 2px 8px rgba(31, 25, 20, 0.08));
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}
.hero__title em { font-style: italic; color: var(--brown); font-weight: 400; }
.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--charcoal-mid);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   10. Page banner (inner pages)
   ───────────────────────────────────────────────────────────── */
.page-banner {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem clamp(3rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(186, 149, 97, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cream-soft), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.page-banner h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brown);
  margin: 1.25rem auto 0;
}
.page-banner p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--charcoal-mid);
  max-width: 620px;
  margin: 1.5rem auto 0;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   11. Highlights
   ───────────────────────────────────────────────────────────── */
.highlights {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--cream);
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.highlight-card {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition);
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brown-light);
}
.highlight-card:hover::before { border-color: var(--line); }

.highlight-card__icon {
  width: 58px; height: 58px;
  margin: 0 auto 1.5rem;
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
}
.highlight-card__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.highlight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.highlight-card h3::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--brown-light);
  margin: 0.85rem auto;
}
.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--charcoal-mid);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   12. About section
   ───────────────────────────────────────────────────────────── */
.about {
  background: var(--cream);
  position: relative;
}
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}
.about__text h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brown);
  margin: 1.25rem 0 2rem;
}
.about__text hr { display: none; }
.about__text p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--charcoal-mid);
  margin-bottom: 1.25rem;
}
.about__text p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 0.35rem 0.75rem 0 0;
  color: var(--brown);
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, var(--cream-dark) 0%, var(--cream-soft) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line);
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__visual .about__monogram {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 400;
  color: var(--brown);
  opacity: 0.18;
  letter-spacing: -0.05em;
  line-height: 1;
  font-style: italic;
}
.about__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about__image:hover img { transform: scale(1.03); }
.about__quote {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  padding: 1.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--brown);
  color: var(--charcoal);
}

/* ─────────────────────────────────────────────────────────────
   13. Products grid
   ───────────────────────────────────────────────────────────── */
.products { background: var(--cream-soft); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.product-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brown-light);
}
.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, var(--cream-soft), var(--cream-dark));
  display: flex; align-items: center; justify-content: center;
}
.product-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card__image--placeholder,
.product-card__image:has(> svg) {
  background:
    linear-gradient(135deg, var(--cream-dark) 0%, var(--cream-soft) 60%, var(--cream-dark) 100%);
}
.product-card__image > svg {
  width: 72px; height: 72px;
  color: var(--brown);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.product-card__image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(246, 241, 232, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-card__image::after { opacity: 1; }

.product-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.product-card__body strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}
.product-card__body strong::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 24px;
  height: 1px;
  background: var(--brown);
}
.product-card__body em {
  font-style: normal;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--charcoal-mid);
}

/* ─────────────────────────────────────────────────────────────
   14. Showroom & galleries (Referencie + Predajňa)
   ───────────────────────────────────────────────────────────── */
.showroom__grid,
.gallery__masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.showroom__item,
.gallery__item a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.showroom__item:hover,
.gallery__item a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.showroom__img,
.gallery__img,
.showroom__item img,
.gallery__item img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.showroom__item:hover img,
.gallery__item a:hover img { transform: scale(1.05); }
.showroom__item::after,
.gallery__item a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31, 25, 20, 0.25) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.showroom__item:hover::after,
.gallery__item a:hover::after { opacity: 1; }

/* Aston featured strip */
.aston { background: var(--cream); }
.aston__label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 2rem;
}
.aston__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.aston__strip a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  transition: transform var(--transition);
}
.aston__strip a:hover { transform: translateY(-2px); }
.aston__strip img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.aston__strip a:hover img { transform: scale(1.05); }

/* ─────────────────────────────────────────────────────────────
   15. Hours card
   ───────────────────────────────────────────────────────────── */
.hours-card {
  max-width: 520px;
  margin: 4rem auto 0;
  padding: 2.5rem 2.5rem 2.25rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.hours-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hours-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  position: relative;
}
.hours-card h3::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--brown);
  margin: 1rem auto 0;
}
.hours-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  position: relative;
}
.hours-card td {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}
.hours-card tr:last-child td { border-bottom: 0; }
.hours-card td:first-child {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}
.hours-card td:last-child {
  text-align: right;
  color: var(--brown-dark);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────────────────
   16. Contact page
   ───────────────────────────────────────────────────────────── */
.contact-section { background: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-card,
.contact-form-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}
.contact-card h3,
.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.contact-card h3::after,
.contact-form-card h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 48px; height: 1px;
  background: var(--brown);
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 0.5rem 0;
}
.contact-info__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  padding-top: 0.2rem;
}
.contact-info__value {
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.65;
}
.contact-info__value a { color: var(--charcoal); }
.contact-info__value a:hover { color: var(--brown); }
.contact-divider {
  height: 1px;
  background: var(--line);
  margin: 0.25rem 0;
}

.map-section iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* Contact Form 7 overrides */
.wpcf7 p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.wpcf7 label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-dark);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color var(--transition), background var(--transition);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--brown);
  background: var(--white);
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
}
.wpcf7 input[type="submit"]:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
}

/* ─────────────────────────────────────────────────────────────
   17. Services content (page-cinnost.php block output)
   ───────────────────────────────────────────────────────────── */
.services-content {
  max-width: 780px;
  margin: 0 auto;
}
.services-content ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.services-content li {
  position: relative;
  padding: 1rem 1rem 1rem 2.75rem;
  background: var(--cream-soft);
  border-left: 2px solid var(--brown);
  font-size: 1rem;
  color: var(--charcoal);
}
.services-content li::before {
  content: '';
  position: absolute;
  left: 1rem; top: 1.25rem;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--brown);
  border-bottom: 1.5px solid var(--brown);
  transform: rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   18. Breadcrumbs
   ───────────────────────────────────────────────────────────── */
.fratex-breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0;
  font-size: 0.82rem;
  color: var(--charcoal-mid);
  letter-spacing: 0.05em;
}
.fratex-breadcrumbs a {
  color: var(--brown-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.fratex-breadcrumbs a:hover { border-bottom-color: var(--brown); }
.fratex-breadcrumbs .separator {
  margin: 0 0.5rem;
  color: var(--line-strong);
}
.fratex-breadcrumbs .current {
  color: var(--charcoal);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   19. Footer
   ───────────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #17120E 0%, #0F0B08 100%);
  color: rgba(246, 241, 232, 0.7);
  padding: clamp(4rem, 6vw, 5rem) 0 2rem;
  position: relative;
  font-size: 0.95rem;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brown-light), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 241, 232, 0.08);
}
.footer a { color: rgba(246, 241, 232, 0.85); }
.footer a:hover { color: var(--brown-light); }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1.25rem;
}
.footer address { font-style: normal; line-height: 1.75; }
.footer p { color: rgba(246, 241, 232, 0.75); line-height: 1.8; }

.footer__brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer__brand::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--brown-light);
  margin-top: 0.75rem;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.15);
  color: rgba(246, 241, 232, 0.7);
  transition: all var(--transition);
}
.footer__social a:hover {
  border-color: var(--brown-light);
  color: var(--brown-light);
  transform: translateY(-2px);
}
.footer__bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 232, 0.5);
}

/* Widget styles inside footer */
.footer .widget { margin-bottom: 1.5rem; }
.footer .widget-title { color: var(--brown-light); font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1rem; }
.footer .widget ul { list-style: none; padding: 0; }
.footer .widget li { padding: 0.25rem 0; }

/* ─────────────────────────────────────────────────────────────
   20. Lightbox overlay (:target)
   ───────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 2000;
  padding: 2rem;
}
.lightbox-overlay:target {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(246, 241, 232, 0.15);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: rgba(246, 241, 232, 0.8);
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.2);
  transition: all var(--transition);
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--cream);
  border-color: var(--cream);
  transform: rotate(90deg);
}

/* ─────────────────────────────────────────────────────────────
   21. Sidebar / widgets (generic page.php use)
   ───────────────────────────────────────────────────────────── */
.has-sidebar .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
}
.sidebar .widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}
.sidebar .widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.sidebar .widget ul { padding: 0; }
.sidebar .widget li { padding: 0.4rem 0; }

/* ─────────────────────────────────────────────────────────────
   22. Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__visual, .about__image { max-width: 440px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .has-sidebar .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar__inner { height: 72px; }
  .navbar.scrolled .navbar__inner { height: 64px; }
  .navbar__logo-img { max-height: 40px; }
  .navbar.scrolled .navbar__logo-img { max-height: 36px; }
  body:not(.home) main, body.no-hero main { padding-top: 72px; }

  .nav-hamburger { display: flex; }
  .navbar__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  #nav-toggle:checked ~ .navbar .navbar__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  #nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .navbar__links a,
  .navbar__links li > a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
  }
  .navbar__links a::after, .navbar__links li > a::after { display: none; }

  .hero { min-height: min(80vh, 680px); padding: 100px 1rem 60px; }
  .hero::after { inset: 1.5rem; }

  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .contact-info__row { grid-template-columns: 1fr; gap: 0.25rem; }

  .about__text p:first-of-type::first-letter {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .section { padding: 3.5rem 0; }
  .hours-card { padding: 1.75rem 1.5rem; margin-top: 2.5rem; }
  .contact-card, .contact-form-card { padding: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   23. Print & reduced motion
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .navbar, .footer, .skip-link, .lightbox-overlay { display: none !important; }
  body { background: white; color: black; }
  .hero { min-height: auto; page-break-after: avoid; }
}
