/*
Theme Name: PortableWC
Theme URI: https://www.portablewc.com/
Author: PortableWC
Author URI: https://www.portablewc.com/
Description: Premium B2B industrial WordPress theme for PortableWC polyethylene portable sanitation products. Mobile-first, fast, EN/TR/AR ready. Products: WC 2040/2040F/2010/2020/2050, Shower 2000, Urinal 1800, Sink 1900.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portablewc
Tags: business, custom-menu, featured-images, translation-ready, dual-sidebar
*/

/*
 * Changelog
 * 1.4.0 — Add Models 2010, 2020, 2040F, 2050 (seed + media + rewrites);
 *         upsert seed import by slug; dynamic footer product links.
 * 1.3.1 — Fix product pretty-URL title vs Rank Math/home query flags;
 *         force seed titles via pre_get_document_title + Rank Math filters.
 * 1.3.0 — SEO content release: per-page titles/metas from seed, pretty-slug
 *         canonicals, richer product Overview/Features/Advantages/FAQ copy,
 *         descriptive image alts, video block only when file exists.
 * 1.2.1 — Blog archive/single + optional homepage Insights band + Blog nav.
 *         Safe empty Blog page helper (page_for_posts) if unset — never seeds posts.
 * 1.2.0 — Organic Farm–inspired light layout: cream page ground, logo-centered
 *         sticky header, centered hero with circular product image under dual
 *         pill CTAs, image-first floating product cards, softened chips/Why cards,
 *         light footer with navy top border. No cart/prices/ratings.
 * 1.1.0 — V1 design foundation — spacing, cards, header, mobile.
 */

/* =========================================================
   PortableWC Design System — light cream + teal/navy accents
   ========================================================= */
:root {
  --pwc-navy: #0f172a;
  --pwc-charcoal: #1e293b;
  --pwc-slate: #334155;
  --pwc-muted: #64748b;
  --pwc-border: #e8e2d9;
  --pwc-cream: #f7f4ef;
  --pwc-cream-soft: #faf8f5;
  --pwc-bg: #f7f4ef;
  --pwc-white: #ffffff;
  --pwc-teal: #0d9488;
  --pwc-teal-dark: #0f766e;
  --pwc-teal-light: #5eead4;
  --pwc-accent: #14b8a6;
  --pwc-radius: 16px;
  --pwc-radius-pill: 999px;
  --pwc-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --pwc-shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --pwc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pwc-max: 1200px;
  --pwc-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pwc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pwc-charcoal);
  background: var(--pwc-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pwc-teal-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pwc-teal); }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--pwc-navy);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.container { width: min(100% - 2rem, var(--pwc-max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.prose-narrow { max-width: 800px; }
.rfq-narrow { max-width: 800px; }
.about-adv { margin-top: 2rem; }
.options-heading { margin-top: 1.75rem; }
.breadcrumb-sep { margin: 0 .35rem; color: var(--pwc-muted); }

/* RTL */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-right: 1.25em; }

/* Buttons — pill hierarchy */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: var(--pwc-radius-pill); font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  min-height: 44px;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--pwc-teal); color: #fff; border-color: var(--pwc-teal); }
.btn-primary:hover { background: var(--pwc-teal-dark); color: #fff; border-color: var(--pwc-teal-dark); box-shadow: 0 4px 14px rgba(13,148,136,.28); }
.btn-outline { background: transparent; color: var(--pwc-navy); border-color: var(--pwc-navy); }
.btn-outline:hover { background: var(--pwc-navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: #fff; color: var(--pwc-navy); }
.btn-lg { padding: .95rem 1.85rem; font-size: 1.05rem; min-height: 50px; }
.btn-sm { padding: .5rem 1.15rem; font-size: .85rem; min-height: 38px; }

/* =========================================================
   Header — light sticky, logo CENTERED, nav LEFT, RFQ RIGHT
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pwc-navy);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--pwc-header-h);
  gap: 1rem;
}
.primary-nav-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}
.site-logo {
  display: flex; align-items: center; justify-content: center;
  justify-self: center;
  flex-shrink: 0;
  z-index: 1;
}
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text {
  font-weight: 800; font-size: 1.35rem; color: var(--pwc-navy); letter-spacing: .02em;
}
.nav-primary {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-primary a {
  color: var(--pwc-slate); font-weight: 500; font-size: .925rem;
  padding: .5rem 0; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-primary a:hover, .nav-primary a.is-active { color: var(--pwc-teal-dark); }
.header-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: .65rem;
  flex-shrink: 0; min-width: 0;
}
.header-rfq {
  white-space: nowrap; padding: .55rem 1.25rem; font-size: .875rem;
  border-radius: var(--pwc-radius-pill);
}
.lang-switcher { display: flex; gap: .15rem; opacity: .7; }
.lang-switcher:hover { opacity: 1; }
.lang-switcher a {
  color: var(--pwc-muted); font-size: .7rem; font-weight: 600;
  padding: .2rem .35rem; border-radius: 3px; border: 1px solid transparent;
  min-height: auto; line-height: 1.2;
}
.lang-switcher a:hover, .lang-switcher a.is-active {
  color: var(--pwc-teal-dark); border-color: rgba(13,148,136,.35); background: rgba(13,148,136,.08);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--pwc-border); color: var(--pwc-navy);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--pwc-navy);
  border-radius: 1px; position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* =========================================================
   Hero — centered stack + LARGE circular product photo
   ========================================================= */
.hero,
.hero--centered {
  background: var(--pwc-cream);
  color: var(--pwc-charcoal);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::after { display: none; }
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(13,148,136,.1);
  color: var(--pwc-teal-dark);
  font-size: .75rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: var(--pwc-radius-pill);
  margin-bottom: 1.35rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  color: var(--pwc-navy);
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  margin-bottom: .9rem;
  letter-spacing: -0.03em;
  max-width: 18ch;
  line-height: 1.15;
}
.hero-lead {
  color: var(--pwc-muted);
  font-size: 1.125rem;
  max-width: 34rem;
  margin: 0 auto 1.85rem;
  line-height: 1.65;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: .85rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.hero-visual--circle {
  width: min(420px, 78vw);
  height: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pwc-white);
  border: 10px solid var(--pwc-white);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.1),
    0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin: 0 auto 2rem;
  padding: 1.75rem;
}
.hero-visual--circle img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  justify-content: center;
  color: var(--pwc-muted); font-size: .875rem;
}
.hero-trust span { display: flex; align-items: center; gap: .4rem; }
.hero-trust strong { color: var(--pwc-navy); }

/* Legacy hero-grid (unused on home) kept harmless */
.hero-grid { display: block; }

/* =========================================================
   Sections — generous rhythm, cream / white bands
   ========================================================= */
.section { padding: 5.5rem 0; background: var(--pwc-white); }
.section-alt { background: var(--pwc-cream); }
.section-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-header .eyebrow {
  color: var(--pwc-teal); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .55rem;
}
.section-header h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -0.02em; }
.section-header p { color: var(--pwc-muted); margin-bottom: 0; }

/* =========================================================
   Product grid — image-first floating cards
   ========================================================= */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem;
  align-items: stretch;
}
.product-card {
  background: var(--pwc-white);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--pwc-shadow-soft);
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover {
  box-shadow: var(--pwc-shadow);
  transform: translateY(-3px);
}
.product-card__media {
  aspect-ratio: 1;
  background: var(--pwc-white);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 1.25rem 0.5rem;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .5rem;
  transition: transform .3s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body {
  padding: .85rem 1.35rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
  text-align: center;
}
.product-card h3 {
  font-size: 1.05rem; margin-bottom: .35rem;
  letter-spacing: -0.01em;
}
.product-card h3 a { color: var(--pwc-navy); }
.product-card h3 a:hover { color: var(--pwc-teal); }
.product-card__model {
  font-size: .75rem; font-weight: 600; color: var(--pwc-muted);
  letter-spacing: .04em; margin-bottom: .65rem;
  text-transform: none;
}
.product-card__meta {
  font-size: .85rem; color: var(--pwc-muted);
  margin: 0 0 .75rem; padding: 0; list-style: none;
  flex: 1; text-align: start;
}
.product-card__meta li { margin-bottom: .2rem; padding-left: .9rem; position: relative; }
.product-card__meta li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--pwc-teal);
}
html[dir="rtl"] .product-card__meta li { padding-left: 0; padding-right: .9rem; }
html[dir="rtl"] .product-card__meta li::before { left: auto; right: 0; }
.product-card__note {
  font-size: .8rem; color: var(--pwc-muted); margin: 0 0 1rem;
  line-height: 1.4; text-align: start;
}
.product-card__actions {
  display: flex; flex-direction: column; align-items: center;
  gap: .65rem; margin-top: auto;
}
.product-card__link {
  font-weight: 600; font-size: .9rem; color: var(--pwc-teal-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.product-card__link:hover { color: var(--pwc-teal); }
.product-card__actions .btn { width: 100%; max-width: 220px; }

/* Specs table */
.specs-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--pwc-radius); border: 1px solid var(--pwc-border);
  background: #fff;
}
.specs-table {
  width: 100%; border-collapse: collapse; background: #fff;
  min-width: 280px;
}
.specs-table th, .specs-table td {
  padding: .85rem 1.1rem; text-align: start; border-bottom: 1px solid var(--pwc-border);
}
.specs-table th { width: 40%; background: var(--pwc-cream-soft); color: var(--pwc-slate); font-weight: 600; font-size: .9rem; }
.specs-table td { color: var(--pwc-navy); font-weight: 500; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }

/* Advantages — soft editorial cards */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.adv-card {
  background: var(--pwc-white);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: var(--pwc-shadow-soft);
  text-align: center;
}
.adv-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(13,148,136,.1);
  color: var(--pwc-teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; margin: 0 auto 1.15rem; font-weight: 800; letter-spacing: .02em;
}
.adv-card h3 { font-size: 1.1rem; }
.adv-card p { color: var(--pwc-muted); margin-bottom: 0; font-size: .95rem; }

/* Export / global strip */
.export-strip {
  background: var(--pwc-white);
  border-block: 1px solid var(--pwc-border);
  padding: 2.25rem 0;
}
.export-strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.export-strip__item { display: flex; flex-direction: column; gap: .35rem; }
.export-strip__label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--pwc-teal);
}
.export-strip__value { font-size: .9rem; color: var(--pwc-slate); line-height: 1.45; }
.export-strip__value a { color: var(--pwc-navy); font-weight: 600; }
.export-strip__value a:hover { color: var(--pwc-teal); }

/* Applications — soft light chips */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.app-chip {
  background: var(--pwc-white);
  color: var(--pwc-slate);
  padding: 1.1rem 1rem;
  border-radius: var(--pwc-radius-pill);
  text-align: center; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--pwc-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.app-chip:hover {
  border-color: rgba(13,148,136,.35);
  color: var(--pwc-teal-dark);
  box-shadow: var(--pwc-shadow-soft);
}

/* Trust strip — soft cream band (not dark navy) */
.trust-strip {
  background: var(--pwc-cream);
  color: var(--pwc-muted);
  padding: 3rem 0;
  border-block: 1px solid var(--pwc-border);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.trust-item strong { display: block; color: var(--pwc-navy); font-size: 1.4rem; margin-bottom: .3rem; }
.trust-item span { font-size: .875rem; }

/* CTA band — teal accent on light site */
.cta-band {
  background: linear-gradient(135deg, var(--pwc-teal-dark), var(--pwc-teal));
  color: #fff; padding: 4rem 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 1.85rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-band .btn { border-radius: var(--pwc-radius-pill); }
.cta-band .btn-outline-light { border-width: 2px; margin: .25rem; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--pwc-border); border-radius: 14px;
  background: #fff; margin-bottom: .75rem; overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.35rem; cursor: pointer; font-weight: 600; color: var(--pwc-navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--pwc-teal); font-size: 1.25rem; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 1.35rem 1.25rem; color: var(--pwc-muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: .875rem; color: var(--pwc-slate); }
.form-group input, .form-group select, .form-group textarea {
  padding: .7rem .85rem; border: 1px solid var(--pwc-border); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff; color: var(--pwc-navy);
  min-height: 44px;
}
.form-group textarea { min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid rgba(13,148,136,.35); border-color: var(--pwc-teal);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--pwc-muted); margin-top: .75rem; }
.alert { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.25rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Product single */
.product-hero { padding: 2.5rem 0 2rem; background: var(--pwc-cream); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: start; }
.product-gallery { min-width: 0; }
.gallery-main {
  background: #fff; border: 1px solid var(--pwc-border); border-radius: 20px;
  padding: 1.5rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--pwc-shadow-soft);
}
.gallery-main img,
.gallery-main picture {
  max-height: 100%; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
.gallery-main picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .85rem; flex-wrap: wrap; }
.gallery-thumbs button {
  border: 2px solid var(--pwc-border); border-radius: 12px; padding: 0; background: #fff;
  width: 80px; height: 80px; overflow: hidden; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.gallery-thumbs button.is-active {
  border-color: var(--pwc-teal);
  box-shadow: 0 0 0 2px rgba(13,148,136,.25);
}
.gallery-thumbs button:hover { border-color: var(--pwc-teal); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.product-summary .model-badge {
  display: inline-block; background: rgba(13,148,136,.1); color: var(--pwc-teal-dark);
  font-weight: 700; font-size: .8rem; padding: .35rem .85rem; border-radius: var(--pwc-radius-pill); margin-bottom: .85rem;
}
.product-summary h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin-bottom: .65rem; }
.product-short { color: var(--pwc-slate); font-size: 1.05rem; margin-bottom: 1rem; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.feature-list li {
  padding: .45rem 0 .45rem 1.5rem; position: relative; color: var(--pwc-slate);
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--pwc-teal); font-weight: 700;
}
html[dir="rtl"] .feature-list li { padding-left: 0; padding-right: 1.5rem; }
html[dir="rtl"] .feature-list li::before { left: auto; right: 0; }
.product-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

.prose-block { padding: 3.5rem 0; }
.prose-block h2 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.video-wrap {
  background: #000; border-radius: var(--pwc-radius); overflow: hidden;
  aspect-ratio: 16/9; max-width: 900px; margin: 0 auto;
}
.video-wrap video { width: 100%; height: 100%; display: block; }

/* Contact / About */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-card {
  background: #fff; border: 1px solid var(--pwc-border); border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1rem;
  box-shadow: var(--pwc-shadow-soft);
}
.info-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p, .info-card a { color: var(--pwc-slate); font-size: .95rem; }

/* =========================================================
   Footer — light with dark navy top border
   ========================================================= */
.site-footer {
  background: var(--pwc-cream-soft);
  color: var(--pwc-muted);
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--pwc-navy);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.75rem; margin-bottom: 2rem; }
.footer-brand .logo-text { color: var(--pwc-navy); font-weight: 800; font-size: 1.15rem; display: block; margin-bottom: .65rem; }
.footer-brand p { font-size: .875rem; line-height: 1.55; margin: 0; color: var(--pwc-muted); }
.footer-col h4 {
  color: var(--pwc-navy); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: var(--pwc-muted); font-size: .875rem; }
.footer-col a:hover { color: var(--pwc-teal-dark); }
.footer-bottom {
  border-top: 1px solid var(--pwc-border); padding-top: 1.15rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--pwc-muted);
}

/* Page header */
.page-header {
  background: var(--pwc-cream); padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--pwc-border);
}
.page-header h1 { margin-bottom: .35rem; }
.page-header .lead { color: var(--pwc-muted); max-width: 40rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--pwc-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--pwc-muted); }
.breadcrumb a:hover { color: var(--pwc-teal); }

/* Archive */
.archive-intro { max-width: 48rem; margin-bottom: 2rem; color: var(--pwc-muted); }


/* =========================================================
   Blog — Insights band, archive, single (editorial cream)
   ========================================================= */
.section--blog { background: var(--pwc-cream); }
.section--blog .section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.section--blog .section-header > div:first-child { flex: 1 1 16rem; }
.section-header__link {
  font-size: .9rem; font-weight: 600; color: var(--pwc-teal-dark);
  white-space: nowrap; text-decoration: none;
}
.section-header__link:hover { color: var(--pwc-teal); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--pwc-white);
  border: 1px solid var(--pwc-border);
  border-radius: var(--pwc-radius);
  overflow: hidden;
  box-shadow: var(--pwc-shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: var(--pwc-shadow);
  transform: translateY(-2px);
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pwc-cream-soft);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
}
.post-card__date {
  font-size: .8rem;
  color: var(--pwc-muted);
  letter-spacing: .02em;
}
.post-card__title {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.35;
}
.post-card__title a { color: var(--pwc-navy); }
.post-card__title a:hover { color: var(--pwc-teal-dark); }
.post-card__excerpt {
  font-size: .925rem;
  color: var(--pwc-slate);
  margin: .25rem 0 .75rem;
  flex: 1;
}
.post-card__excerpt p { margin: 0; }
.post-card__more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--pwc-teal-dark);
  margin-top: auto;
}
.post-card__more:hover { color: var(--pwc-teal); }

/* Single post editorial */
.single-post .page-header { background: var(--pwc-cream); }
.single-post__meta {
  font-size: .9rem;
  color: var(--pwc-muted);
  margin: 0 0 1.25rem;
}
.single-post__featured {
  margin: 0 0 2rem;
  border-radius: var(--pwc-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--pwc-cream-soft);
  box-shadow: var(--pwc-shadow-soft);
}
.single-post__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post__back {
  display: inline-block;
  margin-top: 2rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--pwc-teal-dark);
}
.single-post__back:hover { color: var(--pwc-teal); }

.prose {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--pwc-slate);
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  color: var(--pwc-navy);
  margin-top: 1.75em;
}
.prose a { color: var(--pwc-teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 12px; margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  border-left: 3px solid var(--pwc-teal);
  background: var(--pwc-cream-soft);
  color: var(--pwc-charcoal);
}
html[dir="rtl"] .prose blockquote {
  border-left: none;
  border-right: 3px solid var(--pwc-teal);
}

.blog-archive .post-grid { margin-top: .5rem; }

/* Products section on cream home sits on white band */
#products.section { background: var(--pwc-white); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .export-strip__grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual--circle {
    width: min(360px, 72vw);
    height: min(360px, 72vw);
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    position: relative;
  }
  .primary-nav-wrap {
    order: -1;
    justify-content: flex-start;
  }
  .site-logo { justify-self: center; }
  .header-actions { justify-content: flex-end; }
  .nav-primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pwc-white);
    flex-direction: column; align-items: stretch;
    padding: .75rem 1rem 1rem; gap: 0;
    border-bottom: 1px solid var(--pwc-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    z-index: 99;
  }
  .nav-primary.is-open { display: flex; }
  .nav-primary a {
    padding: .85rem .75rem; min-height: 44px; border-radius: 10px;
    width: 100%; color: var(--pwc-navy);
  }
  .nav-primary a:hover { background: var(--pwc-cream); }
  .lang-switcher { opacity: .65; }
  .lang-switcher a { font-size: .65rem; padding: .15rem .28rem; }
  /* Hide desktop nav list from taking grid space when collapsed —
     toggle sits in actions; nav wrap only hosts absolute menu */
  .primary-nav-wrap:not(.is-mobile-open) { width: auto; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero, .hero--centered { padding: 3rem 0 3.5rem; }
  .product-hero { padding: 1.75rem 0 1.25rem; }
  .prose-block { padding: 2rem 0; }
  .product-grid, .post-grid, .adv-grid, .app-grid, .trust-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-card__actions { flex-direction: column; }
  .product-card__actions .btn { width: 100%; max-width: none; }
  .gallery-thumbs button { width: 64px; height: 64px; }
  .export-strip { padding: 1.5rem 0; }
  .site-logo img { height: 40px; }
  .header-rfq { padding: .5rem .95rem; font-size: .8rem; }
  .specs-table th, .specs-table td { padding: .7rem .85rem; font-size: .9rem; }
  .hero h1 { max-width: none; }
  .hero-visual--circle {
    width: min(300px, 85vw);
    height: min(300px, 85vw);
    border-width: 8px;
    padding: 1.25rem;
  }
  .cta-band { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--pwc-max)); }
  .hero-cta { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-cta .btn { width: 100%; }
  .product-cta-row .btn { width: 100%; }
  .header-inner { gap: .5rem; }
  .lang-switcher { display: none; }
}

/* Mobile header: keep logo centered; nav drawer overlays */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
  }
  .primary-nav-wrap {
    position: static;
    order: 0;
    width: 0;
    min-width: 0;
    overflow: visible;
    justify-content: flex-start;
  }
  .primary-nav-wrap .nav-primary {
    width: 100vw;
    left: 0;
    right: 0;
  }
  .site-logo { justify-self: center; grid-column: 2; }
  .header-actions { grid-column: 3; }
}


/* --- 1.3.0 SEO content helpers --- */
.product-summary__features-title {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}
.video-caption {
  margin: 0.75rem 0 0;
  color: var(--pwc-muted);
  font-size: 0.95rem;
}
