/*
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: Portable WC (2040), Shower (2000), Urinal (1800), Sink (1900).
Version: 1.0.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
*/

/* =========================================================
   PortableWC Design System — navy/charcoal + white + teal
   ========================================================= */
:root {
  --pwc-navy: #0f172a;
  --pwc-charcoal: #1e293b;
  --pwc-slate: #334155;
  --pwc-muted: #64748b;
  --pwc-border: #e2e8f0;
  --pwc-bg: #f8fafc;
  --pwc-white: #ffffff;
  --pwc-teal: #0d9488;
  --pwc-teal-dark: #0f766e;
  --pwc-teal-light: #5eead4;
  --pwc-accent: #14b8a6;
  --pwc-radius: 10px;
  --pwc-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --pwc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pwc-max: 1180px;
  --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-white);
  -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.25;
  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;
}

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.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); }
.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,.7); }
.btn-outline-light:hover { background: #fff; color: var(--pwc-navy); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pwc-navy); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--pwc-header-h); gap: 1rem;
}
.site-logo img { height: 42px; width: auto; }
.site-logo .logo-text {
  font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: .02em;
}
.nav-primary { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-primary a { color: #e2e8f0; font-weight: 500; font-size: .95rem; }
.nav-primary a:hover, .nav-primary a.is-active { color: var(--pwc-teal-light); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switcher { display: flex; gap: .35rem; }
.lang-switcher a {
  color: #94a3b8; font-size: .8rem; font-weight: 600;
  padding: .25rem .45rem; border-radius: 4px; border: 1px solid transparent;
}
.lang-switcher a:hover, .lang-switcher a.is-active {
  color: #fff; border-color: var(--pwc-teal); background: rgba(13,148,136,.25);
}
.nav-toggle {
  display: none; background: none; border: 1px solid #475569; color: #fff;
  padding: .4rem .6rem; border-radius: 6px; cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f766e 100%);
  color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(13,148,136,.25), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(13,148,136,.25); color: var(--pwc-teal-light);
  font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px;
  margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.hero-lead { color: #cbd5e1; font-size: 1.1rem; max-width: 36rem; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: #94a3b8; font-size: .875rem; }
.hero-trust span { display: flex; align-items: center; gap: .4rem; }
.hero-trust strong { color: #e2e8f0; }
.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 1rem; backdrop-filter: blur(8px);
}
.hero-visual img { border-radius: 10px; width: 100%; object-fit: cover; max-height: 380px; margin-inline: auto; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--pwc-bg); }
.section-header { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-header .eyebrow {
  color: var(--pwc-teal); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem;
}
.section-header p { color: var(--pwc-muted); }

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.product-card {
  background: #fff; border: 1px solid var(--pwc-border); border-radius: var(--pwc-radius);
  overflow: hidden; box-shadow: var(--pwc-shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,23,42,.12); }
.product-card__media { aspect-ratio: 1; background: #f1f5f9; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.product-card__body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.product-card__model {
  font-size: .75rem; font-weight: 700; color: var(--pwc-teal);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem;
}
.product-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.product-card h3 a { color: var(--pwc-navy); }
.product-card h3 a:hover { color: var(--pwc-teal); }
.product-card__meta { font-size: .85rem; color: var(--pwc-muted); margin-bottom: 1rem; flex: 1; }
.product-card__meta li { margin-bottom: .2rem; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--pwc-radius); overflow: hidden; border: 1px solid var(--pwc-border); }
.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-bg); 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 */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.adv-card {
  background: #fff; border: 1px solid var(--pwc-border); border-radius: var(--pwc-radius);
  padding: 1.5rem; box-shadow: var(--pwc-shadow);
}
.adv-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(13,148,136,.12);
  color: var(--pwc-teal); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem; font-weight: 800;
}
.adv-card h3 { font-size: 1.05rem; }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.app-chip {
  background: var(--pwc-charcoal); color: #e2e8f0; padding: 1.25rem 1rem;
  border-radius: var(--pwc-radius); text-align: center; font-weight: 600; font-size: .95rem;
  border: 1px solid #334155;
}

/* Trust strip */
.trust-strip {
  background: var(--pwc-navy); color: #cbd5e1; padding: 2.5rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.trust-item strong { display: block; color: #fff; font-size: 1.35rem; margin-bottom: .25rem; }
.trust-item span { font-size: .875rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(90deg, var(--pwc-teal-dark), var(--pwc-teal));
  color: #fff; padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-band .btn-outline-light { border-width: 2px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--pwc-border); border-radius: var(--pwc-radius);
  background: #fff; margin-bottom: .75rem; overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--pwc-navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.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.25rem 1.15rem; 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: 8px;
  font: inherit; background: #fff; color: var(--pwc-navy);
}
.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: 8px; 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 1rem; background: var(--pwc-bg); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.gallery-main {
  background: #fff; border: 1px solid var(--pwc-border); border-radius: var(--pwc-radius);
  padding: 1rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumbs button {
  border: 2px solid var(--pwc-border); border-radius: 8px; padding: 0; background: #fff;
  width: 72px; height: 72px; overflow: hidden; cursor: pointer;
}
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--pwc-teal); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-summary .model-badge {
  display: inline-block; background: rgba(13,148,136,.12); color: var(--pwc-teal-dark);
  font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 6px; margin-bottom: .75rem;
}
.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: 2.5rem 0; }
.prose-block h2 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.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: var(--pwc-radius);
  padding: 1.5rem; margin-bottom: 1rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p, .info-card a { color: var(--pwc-slate); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--pwc-navy); color: #94a3b8; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { color: #fff; font-weight: 800; font-size: 1.2rem; display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.55; }
.footer-col h4 { color: #e2e8f0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: #94a3b8; font-size: .9rem; }
.footer-col a:hover { color: var(--pwc-teal-light); }
.footer-bottom {
  border-top: 1px solid #334155; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem;
}

/* Page header */
.page-header { background: var(--pwc-bg); padding: 2.5rem 0 1.5rem; 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: .75rem; }
.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); }

/* Responsive */
@media (max-width: 1024px) {
  .product-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; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .product-layout, .two-col, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    display: none; position: absolute; top: var(--pwc-header-h); left: 0; right: 0;
    background: var(--pwc-charcoal); flex-direction: column; padding: 1rem;
    gap: .75rem; border-bottom: 1px solid #334155;
  }
  .nav-primary.is-open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .product-grid, .adv-grid, .app-grid, .trust-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}
