/*
Theme Name: OVAY Hydro
Theme URI: https://www.ovayhydro.com/
Author: OVAY / Codex
Description: Technical B2B WordPress theme for OVAY Hydro membrane products.
Version: 2.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ovay-membrane
*/

:root {
  --ink: #14212b;
  --muted: #5d6b75;
  --line: #d9e1e6;
  --paper: #ffffff;
  --wash: #f4f7f8;
  --blue: #0759a6;
  --blue-dark: #063f78;
  --teal: #087f7b;
  --green: #2d8668;
  --navy: #071d2b;
  --radius: 6px;
  --shadow: 0 18px 42px rgba(15, 36, 49, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 225, 230, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand-symbol {
  flex: 0 0 60px;
  width: 60px;
  height: 46px;
  background: url("assets/images/ovay-favicon-v2.png") center / contain no-repeat;
}
.brand-name { color: #073f78; font-size: 20px; font-weight: 850; line-height: 1; }
.brand-name small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 750; }
.primary-nav { min-width: 0; margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; white-space: nowrap; }
.nav-menu a { color: #273742; font-size: 14px; font-weight: 720; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--blue); }
.header-cta, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
}
.header-cta { flex: 0 0 auto; }
.button:hover, .header-cta:hover { background: var(--blue-dark); }
.button.secondary { border-color: #b7c8d3; background: #fff; color: var(--blue-dark); }
.button.secondary-light { border-color: rgba(20, 54, 74, 0.32); background: rgba(255, 255, 255, 0.68); color: var(--blue-dark); }
.button.green { background: var(--green); }

.hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  color: var(--ink);
  background: #f7fbfc url("assets/images/hero-membrane-background-v2.jpg") center / cover no-repeat;
}
.hero-copy { display: flex; align-items: center; padding: 76px max(42px, calc((100vw - 1200px) / 2)); padding-right: 54px; }
.hero-copy-inner { max-width: 590px; }
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1, .page-hero h1, .product-hero h1 { margin: 0; font-size: 60px; line-height: 1.03; letter-spacing: 0; }
.hero-copy > *, .hero-copy-inner > * { position: relative; }
.hero p { max-width: 560px; margin: 24px 0 0; color: #4d606c; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(20, 54, 74, 0.18); }
.hero-facts span { color: #637680; font-size: 12px; }
.hero-facts strong { display: block; color: #12384f; font-size: 18px; }
.hero-visual { min-width: 0; overflow: hidden; background: transparent; }
.hero-product-stage { position: relative; min-height: 650px; }
.hero-product {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(22, 61, 80, 0.18));
}
.hero-product-3213 { z-index: 1; right: 4%; bottom: 13%; width: 82%; transform: rotate(-4deg); }
.hero-product-3013 { z-index: 2; top: 18%; right: 4%; width: 70%; transform: rotate(10deg); }
.hero-product-3012 { z-index: 3; top: 39%; left: 1%; width: 58%; transform: rotate(-9deg); }
.hero-product-1812 { z-index: 4; bottom: 8%; left: 6%; width: 49%; transform: rotate(5deg); }

.section { padding: 82px 0; }
.section.alt { background: var(--wash); }
.section h2, .final-cta h2, .datasheet-band h2 { margin: 0; color: #122b3a; font-size: 43px; line-height: 1.1; letter-spacing: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr); gap: 64px; align-items: end; margin-bottom: 38px; }
.section-head > p, .lead { margin: 0; color: var(--muted); font-size: 17px; }
.section-kicker { color: var(--teal); }
.intro-band { padding: 56px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.55fr); gap: 64px; align-items: end; }
.intro-grid h2 { max-width: 680px; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 800; }
.text-link span { margin-left: 7px; }

.product-architecture { padding-top: 70px; }
.category-list { border-top: 1px solid var(--line); }
.category-row {
  display: grid;
  min-height: 180px;
  grid-template-columns: 230px minmax(0, 1fr) 150px;
  gap: 34px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.category-row:hover h3 { color: var(--blue); }
.category-image { height: 136px; overflow: hidden; background: #f3f7f9; }
.category-image img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.category-image.contain img { object-fit: contain; padding: 9px; }
.category-index { color: var(--teal); font-size: 12px; font-weight: 800; }
.category-row h3 { margin: 5px 0 7px; color: #17354a; font-size: 27px; line-height: 1.15; }
.category-row p { max-width: 680px; margin: 0; color: var(--muted); }
.category-row > strong { color: #43525c; font-size: 14px; text-align: right; }

.series-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.series-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.series-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.series-card img { width: 100%; aspect-ratio: 1.3; object-fit: contain; padding: 12px; background: #f9fbfc; }
.series-card > div { padding: 20px; }
.series-card span { color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.series-card h3 { min-height: 52px; margin: 7px 0 18px; color: #153448; font-size: 20px; line-height: 1.25; }
.series-card dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; padding-top: 13px; border-top: 1px solid var(--line); font-size: 12px; }
.series-card dt { color: var(--muted); }
.series-card dd { margin: 0; font-weight: 760; }

.split { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.62fr); gap: 58px; align-items: center; }
.feature-image { overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.feature-image img { width: 100%; aspect-ratio: 16 / 10; min-height: 0; object-fit: contain; background: var(--wash); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 30px 0 24px; background: var(--line); }
.capability-grid div { min-height: 130px; padding: 22px; background: #fff; }
.capability-grid strong { display: block; color: var(--blue-dark); font-size: 25px; }
.capability-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.applications-band { color: #fff; background: #102d32; }
.light-head h2 { color: #fff; }
.light-link { color: #79d5ce; }
.application-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.application-strip article { position: relative; min-height: 340px; overflow: hidden; }
.application-strip img { width: 100%; height: 340px; object-fit: contain; background: #0d282d; }
.application-strip article::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgba(4, 24, 26, 0.9)); }
.application-strip h3 { position: absolute; z-index: 1; bottom: 22px; left: 22px; right: 22px; margin: 0; font-size: 22px; }

.document-split { align-items: start; }
.download-list { border-top: 1px solid var(--line); }
.download-list a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: #17384e; }
.download-list strong { color: var(--blue); font-size: 12px; }
.final-cta { padding: 58px 0; background: #e9f1f2; }
.final-cta-inner, .datasheet-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.final-cta h2 { max-width: 720px; font-size: 38px; }

.page-hero { color: #fff; background: var(--navy); }
.page-hero-grid { display: grid; min-height: 490px; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr); gap: 64px; align-items: center; padding: 64px 0; }
.page-hero p { max-width: 680px; margin: 22px 0 0; color: #d1dee5; font-size: 18px; }
.page-hero figure { height: 360px; overflow: hidden; background: #0b293d; }
.page-hero figure img { width: 100%; height: 100%; object-fit: contain; }

.product-hero { padding: 74px 0; background: #f1f5f6; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.62fr); gap: 70px; align-items: center; }
.product-hero h1 { color: #112d40; font-size: 53px; }
.product-hero p { max-width: 690px; margin: 23px 0 0; color: var(--muted); font-size: 17px; }
.dark-eyebrow { color: var(--teal); }
.product-hero-image { position: relative; min-height: 410px; padding: 34px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.product-hero-image img { width: 100%; height: 340px; object-fit: contain; }
.product-hero-image span { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 6px 9px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.check-list, .application-list { display: grid; gap: 0; padding: 0; margin: 18px 0 0; list-style: none; }
.check-list li, .application-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #334751; }
.check-list li::before { margin-right: 10px; color: var(--green); content: "✓"; font-weight: 900; }
.application-list { counter-reset: apps; }
.application-list li::before { counter-increment: apps; margin-right: 12px; color: var(--blue); content: "0" counter(apps); font-size: 11px; font-weight: 850; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.spec-table { width: 100%; min-width: 800px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { color: #52616b; background: #eef3f5; font-size: 12px; text-transform: uppercase; }
.spec-table td:first-child { color: #0a4d8e; font-weight: 780; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.conditions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: start; }
.data-list { border-top: 2px solid #17384e; }
.data-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, auto); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.data-list span { color: var(--muted); }
.data-list strong { text-align: right; }
.datasheet-band { padding: 48px 0; color: #fff; background: #102d32; }
.datasheet-band h2 { color: #fff; font-size: 34px; }
.datasheet-band p { margin: 7px 0 0; color: #b8cbcb; }

.product-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-family { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product-family img { width: 100%; aspect-ratio: 1.35; object-fit: contain; padding: 12px; background: #f6f9fa; }
.product-family img.contain-image { object-fit: contain; padding: 16px; }
.product-family > div { padding: 22px; }
.product-family span { color: var(--teal); font-size: 11px; font-weight: 800; }
.product-family h3 { margin: 7px 0; color: #14364d; font-size: 24px; }
.product-family p { margin: 0; color: var(--muted); }
.series-index { border-top: 1px solid var(--line); }
.series-index a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 130px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.series-index strong { color: var(--blue-dark); font-size: 24px; }
.series-index span { color: var(--muted); }
.series-index b { color: var(--blue); font-size: 13px; text-align: right; }

.application-detail-grid { display: grid; gap: 42px; }
.application-detail-grid article { display: grid; grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1fr); align-items: center; background: var(--wash); }
.application-detail-grid article:nth-child(even) img { order: 2; }
.application-detail-grid img { width: 100%; height: 350px; object-fit: contain; background: #eaf0f2; }
.application-detail-grid article > div { padding: 40px; }
.application-detail-grid span { color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.application-detail-grid h2 { margin-top: 7px; font-size: 34px; }
.application-detail-grid p { color: var(--muted); }
.application-detail-grid a { color: var(--blue); font-weight: 780; }
.technical-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.technical-steps > div { min-height: 260px; padding: 28px; background: #fff; }
.technical-steps strong { color: var(--teal); }
.technical-steps h3 { margin: 34px 0 10px; color: #16364b; font-size: 21px; }
.technical-steps p { margin: 0; color: var(--muted); }
.company-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.company-stats div { min-height: 150px; padding: 28px; background: #fff; }
.company-stats strong { display: block; color: var(--blue-dark); font-size: 29px; }
.company-stats span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(360px, 0.55fr); gap: 80px; }
.contact-links { margin-top: 28px; border-top: 1px solid var(--line); }
.contact-links a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-links span { display: block; color: var(--muted); font-size: 12px; }
.contact-links strong { color: var(--blue-dark); font-size: 21px; }
.inquiry-checklist { padding: 36px; background: var(--wash); }
.inquiry-checklist h2 { font-size: 34px; }
.inquiry-checklist ol { padding-left: 22px; margin: 24px 0 28px; }
.inquiry-checklist li { padding: 8px 0; }

.site-footer { padding: 56px 0 28px; color: #b7c6ce; background: #071d2b; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(160px, 0.45fr)); gap: 44px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: #9eb1bc; }
.footer-brand p { max-width: 360px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin: 8px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.copyright { padding-top: 24px; margin-top: 38px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #869da9; font-size: 12px; }

@media (max-width: 1080px) {
  .header-inner { gap: 20px; }
  .nav-menu { gap: 18px; }
  .hero h1, .page-hero h1, .product-hero h1 { font-size: 48px; }
  .series-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technical-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .container { width: min(100% - 32px, 1200px); }
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .primary-nav { order: 3; width: 100%; margin: 0; overflow: visible; }
  .nav-menu { flex-wrap: wrap; justify-content: flex-start; gap: 10px 20px; white-space: normal; }
  .header-cta { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 28px; }
  .hero-copy-inner { max-width: 680px; margin: 0 auto; }
  .hero-visual { height: 320px; }
  .hero-product-stage { min-height: 320px; }
  .hero-product-3213 { right: 5%; bottom: 9%; width: 82%; }
  .hero-product-3013 { top: 15%; right: 4%; width: 68%; }
  .hero-product-3012 { top: 38%; left: 2%; width: 56%; }
  .hero-product-1812 { bottom: 6%; left: 5%; width: 48%; }
  .section { padding: 64px 0; }
  .section h2, .final-cta h2 { font-size: 36px; }
  .section-head, .intro-grid, .split, .page-hero-grid, .product-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .category-row { grid-template-columns: 180px minmax(0, 1fr); }
  .category-row > strong { grid-column: 2; text-align: left; }
  .product-family-grid { grid-template-columns: 1fr; }
  .application-detail-grid article { grid-template-columns: 1fr; }
  .application-detail-grid article:nth-child(even) img { order: initial; }
  .conditions-grid, .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .brand-symbol { flex-basis: 48px; width: 48px; height: 38px; }
  .brand-name { font-size: 17px; }
  .header-cta { min-height: 38px; padding: 9px 12px; }
  .nav-menu a { font-size: 12px; }
  .hero-copy { padding: 52px 20px; }
  .hero h1, .page-hero h1, .product-hero h1 { font-size: 39px; }
  .hero p, .page-hero p { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { order: -1; height: 250px; }
  .hero-product-stage { min-height: 250px; }
  .section h2, .final-cta h2 { font-size: 31px; }
  .category-row { grid-template-columns: 1fr; gap: 16px; }
  .category-image { height: 190px; }
  .category-row > strong { grid-column: 1; }
  .series-cards, .application-strip, .capability-grid, .technical-steps, .company-stats { grid-template-columns: 1fr; }
  .application-strip article, .application-strip img { min-height: 270px; height: 270px; }
  .page-hero-grid { min-height: auto; padding: 48px 0; }
  .page-hero figure { height: 250px; }
  .product-hero { padding: 54px 0; }
  .product-hero-image { min-height: 300px; }
  .product-hero-image img { height: 250px; }
  .series-index a { grid-template-columns: 1fr; gap: 6px; }
  .series-index b { text-align: left; }
  .application-detail-grid img { height: 250px; }
  .application-detail-grid article > div { padding: 28px; }
  .final-cta-inner, .datasheet-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-list div { grid-template-columns: 1fr; gap: 3px; }
  .data-list strong { text-align: left; }
}
