/*
Theme Name: Q-TEC Valve
Theme URI: https://qtecvalve.kz
Author: Q-TEC Valve
Author URI: https://qtecvalve.kz
Description: Кастомная тема для Q-TEC Valve — казахстанского производителя трубопроводной арматуры. Включает каталог продукции, проекты, новости и управление контентом через WordPress.
Version: 1.0.0
License: Proprietary
Text Domain: qtecvalve
Tags: industrial, catalog, navy, gold
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --gold: #d4af37;
  --gold-light: #e8cc6a;
  --gold-dark: #b8941e;
  --navy-950: #080f1a;
  --navy-900: #0b1628;
  --navy-800: #0b2140;
  --navy-700: #0e2a47;
  --navy-600: #112f52;
  --text-primary: #e8e0d0;
  --text-muted: rgba(232, 224, 208, 0.6);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy-800);
  color: var(--text-primary);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.font-playfair,
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-montserrat {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.border-gold { border-color: var(--gold); }
.bg-navy-950 { background-color: var(--navy-950); }
.bg-navy-900 { background-color: var(--navy-900); }
.bg-navy-800 { background-color: var(--navy-800); }
.bg-navy-700 { background-color: var(--navy-700); }

/* =============================================
   COMPONENT: GOLD LINE
   ============================================= */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
  width: 100%;
}

.gold-line-short {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
  width: 180px;
  margin: 0 auto;
}

/* =============================================
   COMPONENT: BUTTONS
   ============================================= */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #0b1628 !important;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.85rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.55), 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
  color: #0b1628 !important;
}

.btn-outline-gold {
  display: inline-block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 10px 28px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-outline-gold:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.9);
  background: rgba(212, 175, 55, 0.08);
}

/* =============================================
   COMPONENT: GLASS PANEL
   ============================================= */
.glass-panel {
  background: rgba(8, 20, 40, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* =============================================
   COMPONENT: ORNAMENT BACKGROUNDS
   ============================================= */
.ornament-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(212, 175, 55, 0.025) 0%, transparent 50%);
}

.corner-ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: url('/wp-content/themes/qtecvalve/assets/images/ornament-corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.corner-ornament.tl { top: 0; left: 0; }
.corner-ornament.tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-ornament.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-ornament.br { bottom: 0; right: 0; transform: scale(-1, -1); }

.corner-ornament.sm { width: 60px; height: 60px; opacity: 0.7; }
.corner-ornament.xs { width: 48px; height: 48px; opacity: 0.5; }
.corner-ornament.xxs { width: 36px; height: 36px; opacity: 0.45; }

/* =============================================
   COMPONENT: SECTION HEADINGS
   ============================================= */
.section-subtitle {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #e8e0d0;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 1rem;
}

.ornament-divider {
  display: block;
  margin: 0 auto;
  opacity: 0.85;
  max-width: 200px;
}

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: relative;
  width: 100%;
  background-color: var(--navy-950);
}

.header-ornament-top {
  width: 100%;
  height: 56px;
  background-image: url('/wp-content/themes/qtecvalve/assets/images/ornament-top.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
}

.header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.header-logo-line {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.header-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.85);
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.current-menu-item {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.current-menu-item::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

#mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  background-color: rgba(8, 15, 26, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

#mobile-nav.open {
  display: flex;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,21,40,0.5) 0%, rgba(11,33,64,0.52) 50%, rgba(8,15,26,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  min-height: 560px;
}

.hero-panel {
  max-width: 640px;
  width: 100%;
  position: relative;
  border-radius: 2px;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(212,175,55,0.4);
  text-align: center;
}

.hero-subtitle {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(232, 224, 208, 0.75);
  text-transform: uppercase;
  text-align: center;
  max-width: 320px;
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-divider {
  padding: 0.75rem 0;
  display: flex;
  justify-content: center;
  background-color: var(--navy-950);
}

/* =============================================
   ORNAMENT DIVIDER SECTION
   ============================================= */
.ornament-section-divider {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--navy-950);
}

.ornament-section-divider img {
  opacity: 0.8;
  padding: 0.75rem 0;
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
#products-section {
  position: relative;
  width: 100%;
  padding: 5rem 1rem;
  background-color: var(--navy-800);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.product-card-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.product-card-home:hover .product-ring {
  transform: scale(1.05);
}

.product-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.product-ring {
  position: absolute;
  inset: 0;
  object-fit: contain;
  opacity: 0.95;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.product-img-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.25);
  z-index: 1;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  border-radius: 50%;
  transition: transform 0.7s ease;
}

.product-card-home:hover .product-img-wrap img {
  transform: scale(1.1);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.product-type-label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.product-card-desc {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(232, 224, 208, 0.7);
  line-height: 1.7;
  max-width: 240px;
}

.product-more-link {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 2px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-home:hover .product-more-link {
  opacity: 1;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
#projects-section {
  position: relative;
  width: 100%;
  padding: 5rem 1rem;
  background-color: var(--navy-700);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(8, 15, 26, 0.7);
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.7s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.1);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.9) 0%, transparent 60%);
}

.project-year-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  background-color: rgba(8, 15, 26, 0.7);
  padding: 3px 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.project-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.4;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-location-line {
  width: 24px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.6;
}

.project-location span {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.68rem;
  color: rgba(232, 224, 208, 0.45);
  letter-spacing: 0.12em;
}

/* =============================================
   NEWS SECTION
   ============================================= */
#news-section {
  position: relative;
  width: 100%;
  padding: 5rem 1rem;
  background-color: var(--navy-950);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.news-card {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(11, 22, 40, 0.85);
  overflow: hidden;
}

.news-card-inner {
  display: flex;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  width: 160px;
  min-height: 160px;
  flex-shrink: 0;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.5s ease;
  position: absolute;
  inset: 0;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.05);
}

.news-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(11, 22, 40, 0.9) 100%);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-date {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.news-meta-sep {
  width: 1px;
  height: 12px;
  background-color: rgba(212, 175, 55, 0.3);
}

.news-category {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(232, 224, 208, 0.4);
  text-transform: uppercase;
}

.news-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.35;
}

.news-excerpt {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 224, 208, 0.6);
  line-height: 1.7;
}

.news-read-more {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.25rem;
  transition: gap 0.2s ease;
}

.news-read-more:hover {
  gap: 8px;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  position: relative;
  width: 100%;
  background-color: var(--navy-950);
}

.footer-grid {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col-line {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.footer-about-text,
.footer-social-text {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 224, 208, 0.6);
  line-height: 1.8;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
}

.footer-contact-text {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 224, 208, 0.6);
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  transform: scale(1.1);
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copyright {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(232, 224, 208, 0.35);
  text-transform: uppercase;
}

.footer-made-in {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
}

/* =============================================
   CATALOG PAGE
   ============================================= */
.catalog-section {
  position: relative;
  width: 100%;
  padding: 4rem 1rem;
  background-color: var(--navy-800);
  min-height: 80vh;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.catalog-filter-btn {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(232, 224, 208, 0.6);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.catalog-filter-btn:hover,
.catalog-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.1);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.catalog-product-card {
  position: relative;
  background: rgba(8, 15, 26, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.catalog-product-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-3px);
}

.catalog-product-img {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.catalog-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.7s ease;
}

.catalog-product-card:hover .catalog-product-img img {
  transform: scale(1.1);
}

.catalog-product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.95) 0%, rgba(8,15,26,0.2) 60%, transparent 100%);
}

.catalog-product-type {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: rgba(232, 224, 208, 0.7);
  background-color: rgba(8, 15, 26, 0.75);
  padding: 3px 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
}

.catalog-product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-product-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.45;
}

.catalog-product-gold-line {
  width: 32px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.5;
}

.catalog-product-excerpt {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  color: rgba(232, 224, 208, 0.45);
  line-height: 1.6;
}

.catalog-product-link {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 2px;
  display: inline-block;
  align-self: flex-start;
}

/* =============================================
   SINGLE PRODUCT PAGE
   ============================================= */
.single-product-section {
  position: relative;
  width: 100%;
  padding: 4rem 1rem;
  background-color: var(--navy-800);
  min-height: 80vh;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
  margin-bottom: 2.5rem;
  transition: opacity 0.2s ease;
}

.breadcrumb-back:hover {
  opacity: 0.8;
}

.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.single-product-img-wrap {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.single-product-img-inner {
  position: relative;
  overflow: hidden;
  height: 380px;
}

.single-product-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.single-product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.6) 0%, transparent 60%);
}

.single-product-type-badge {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 1rem;
}

.single-product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.single-product-gold-line {
  width: 56px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.single-product-desc {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(232, 224, 208, 0.65);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.specs-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.03);
}

.spec-label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.spec-value {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(232, 224, 208, 0.85);
}

.related-products {
  margin-top: 5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-product-card {
  position: relative;
  background: rgba(8, 15, 26, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: block;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.related-product-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-3px);
}

.related-product-img {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.related-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.7s ease;
}

.related-product-card:hover .related-product-img img {
  transform: scale(1.1);
}

.related-product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.95) 0%, rgba(8,15,26,0.1) 70%);
}

.related-product-body {
  padding: 1rem;
}

.related-product-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.82rem;
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

/* =============================================
   SINGLE POST (NEWS)
   ============================================= */
.single-post-section {
  position: relative;
  width: 100%;
  padding: 4rem 1rem;
  background-color: var(--navy-800);
  min-height: 80vh;
}

.post-header-img {
  position: relative;
  overflow: hidden;
  height: 400px;
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.post-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.post-header-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.8) 0%, transparent 50%);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-date {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.post-cat {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(232, 224, 208, 0.4);
  text-transform: uppercase;
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #e8e0d0;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-gold-line {
  width: 56px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.post-content {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 224, 208, 0.75);
  line-height: 1.9;
}

.post-content p { margin-bottom: 1.25rem; }
.post-content h2, .post-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  margin: 2rem 0 1rem;
}
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}

.post-content a {
  color: var(--gold);
  text-decoration: underline;
}

/* =============================================
   MAX WIDTH CONTAINER
   ============================================= */
.container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.container-md {
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
}

/* =============================================
   CONTACT FORM (WPForms / CF7)
   ============================================= */
.contact-section {
  position: relative;
  width: 100%;
  padding: 5rem 1rem;
  background-color: var(--navy-900);
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  background: rgba(8, 15, 26, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 0.75rem;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--gold);
}

.wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #0b1628;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  padding: 0.85rem 2.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  width: auto;
}

.wpcf7-form input[type="submit"]:hover {
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #site-nav { display: none; }
  .mobile-menu-toggle { display: block; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid,
  .news-grid,
  .single-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 2rem 1.5rem;
  }

  .news-card-inner {
    flex-direction: column;
  }

  .news-img-wrap {
    width: 100%;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}
