/* YOTIC Plastics - main stylesheet */
:root {
  --main: #0b3a6e;
  --main-dark: #072a50;
  --accent: #b3171d;
  --accent-dark: #93121a;
  --text: #333;
  --gray: #6c757d;
  --light: #f4f5f7;
  --border: #dee2e6;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
html[dir="ltr"] body { font-family: "Cairo", Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--main); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.4; color: #222; font-weight: 700; }
p { margin: 0 0 12px; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* top bar */
.topbar { background: var(--main); color: #dbe5f1; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd1d3; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar .ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; margin-inline-end: 5px; }
.fb-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: #fff; color: var(--main) !important; border-radius: 3px; font: bold 15px Arial, sans-serif; }
.topbar .fb-ico:hover { background: #ffd1d3; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,.05); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; padding: 8px 0; }
.brand svg { height: 62px; width: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 26px 13px; color: #222; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: var(--main); color: #fff; border: 0; border-radius: 3px; padding: 7px 12px; font: 700 14px "Cairo", Tahoma, sans-serif; cursor: pointer; }
.nav-toggle span { display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; vertical-align: middle; margin-inline-end: 6px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* banner */
.banner { position: relative; background: #222 url(img/red-hdpe-1.jpg) center 40% / cover no-repeat; color: #fff; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .58); }
.banner .container { position: relative; padding-top: 110px; padding-bottom: 110px; }
.banner h1 { color: #fff; font-size: 36px; max-width: 720px; margin-bottom: 14px; }
.banner p { font-size: 17px; max-width: 640px; color: #eee; }
.banner .buttons { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* page title bar for inner pages */
.page-title { background: var(--light); border-bottom: 1px solid var(--border); padding: 28px 0; }
.page-title h1 { font-size: 28px; color: var(--main); margin: 0 0 4px; }
.breadcrumb { font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; padding: 9px 22px; border-radius: 3px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.6; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--main); border-color: #fff; }
.btn-light:hover { background: #e9ecef; color: var(--main); }
.btn-outline { background: transparent; color: var(--main); border-color: var(--main); }
.btn-outline:hover { background: var(--main); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: #1ebe5b; color: #fff; }

/* sections */
.section { padding: 50px 0; }
.section.gray { background: var(--light); }
.section-title { margin-bottom: 26px; }
.section-title h2 { font-size: 26px; color: var(--main); margin-bottom: 4px; }
.section-title h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin-top: 8px; }
.section-title p { color: var(--gray); margin: 8px 0 0; }
.center { text-align: center; }
.center .section-title h2::after { margin-left: auto; margin-right: auto; }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-6, .col-4, .col-8, .col-3 { padding: 0 15px; min-width: 0; }
.col-6 { width: 50%; } .col-4 { width: 33.333%; } .col-8 { width: 66.666%; } .col-3 { width: 25%; }

/* product cards */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-card .thumb { display: block; height: 200px; overflow: hidden; background: #ccc; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile { display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center; height: 100%; padding: 10px; }
.tile b { font: bold 34px Arial, Helvetica, sans-serif; letter-spacing: 1px; }
.tile small { font-size: 15px; opacity: .9; }
.tile-navy { background: #0b3a6e; } .tile-blue { background: #2f6299; } .tile-red { background: #9c2a2e; }
.tile-gray { background: #5a6570; } .tile-teal { background: #2e6f73; } .tile-green { background: #4f6b3a; }
.product-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 18px; margin-bottom: 4px; }
.product-card h3 a { color: #222; }
.product-card h3 a:hover { color: var(--accent); }
.product-card p { color: var(--gray); font-size: 14px; flex: 1; }
.product-card .more { font-weight: 700; font-size: 14px; color: var(--accent); }
.product-card .more:hover { color: var(--main); }
.product-card .price-tag { font-size: 13px; color: var(--main); font-weight: 700; margin-bottom: 6px; }

/* intro / about */
.intro p { font-size: 16px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 8px 0; padding-inline-start: 26px; border-bottom: 1px dashed var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.box { background: #fff; border: 1px solid var(--border); padding: 22px; height: 100%; }
.box h3 { color: var(--main); font-size: 19px; }
.side-img img { display: block; width: 100%; height: 360px; object-fit: cover; border: 1px solid var(--border); }

/* industries */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); background: #fff; }
.industries > div { padding: 18px 20px; border-inline-start: 1px solid var(--border); }
.industries > div:first-child { border-inline-start: 0; }
.industries h3 { font-size: 17px; color: var(--main); margin-bottom: 6px; }
.industries ul { margin: 0; padding: 0; padding-inline-start: 18px; color: #555; font-size: 14px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--border); background: #fff; padding: 18px; display: flex; flex-direction: column; }
.post-card .meta, .post-meta { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.post-card h3 { font-size: 17px; }
.post-card h3 a { color: #222; } .post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 14px; color: #555; flex: 1; }
.article { max-width: 820px; }
.article h2 { font-size: 21px; color: var(--main); margin-top: 26px; }
.article p, .article li { font-size: 16px; }
.article ul, .article ol { padding-inline-start: 22px; }
.article .post-meta { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 18px; }
.related { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); }

/* call strip */
.cta-strip { background: var(--accent); color: #fff; padding: 26px 0; }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cta-strip h2 { color: #fff; font-size: 22px; margin: 0; }
.cta-strip p { margin: 0; color: #fde3e4; }
.cta-strip .buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border: 1px solid var(--border); padding: 9px 12px; text-align: start; vertical-align: top; }
.table thead th { background: var(--main); color: #fff; font-weight: 700; }
.table tbody tr:nth-child(even) td { background: #f9fafb; }
.table td.price { font: bold 20px Arial, Helvetica, sans-serif; color: var(--accent); white-space: nowrap; }
.spec th { width: 34%; background: var(--light); font-weight: 700; color: #444; }
.note { background: #fff8e5; border: 1px solid #f0dca5; border-inline-start: 4px solid #e0a800; padding: 12px 16px; margin: 18px 0; font-size: 14px; }
.note ul { margin: 0; padding-inline-start: 18px; }
.date-line { display: inline-block; background: var(--main); color: #fff; padding: 3px 12px; font-size: 14px; border-radius: 3px; margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.gallery figure { margin: 0; border: 1px solid var(--border); background: #fff; }
.gallery img { display: block; width: 100%; height: 280px; object-fit: cover; }
.gallery figcaption { padding: 6px 10px; font-size: 13px; color: var(--gray); }

/* product detail */
.product-detail { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 30px; align-items: start; }
.product-detail .media img { display: block; width: 100%; height: 420px; object-fit: cover; border: 1px solid var(--border); }
.product-detail .media .tile { height: 320px; }
.product-detail .media .tile b { font-size: 52px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.thumbs img { height: 140px !important; }
.product-detail h2 { font-size: 22px; color: var(--main); }
.product-detail h3 { font-size: 18px; color: var(--main); margin-top: 22px; }
.price-box { border: 1px solid var(--border); background: var(--light); padding: 14px 16px; margin: 16px 0; }
.price-box table td { border: 0; border-bottom: 1px solid var(--border); padding: 6px 4px; background: transparent !important; }
.price-box table tr:last-child td { border-bottom: 0; }
.sidebar-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); }
.sidebar-list li a { display: block; padding: 9px 14px; border-bottom: 1px solid var(--border); color: #333; }
.sidebar-list li:last-child a { border-bottom: 0; }
.sidebar-list li a:hover, .sidebar-list li a.active { background: var(--main); color: #fff; }

/* contact */
.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-info b { display: block; color: var(--main); font-size: 14px; }
.map { border: 1px solid var(--border); margin-top: 30px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
form.rfq { background: var(--light); border: 1px solid var(--border); padding: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; min-width: 0; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.form-control { width: 100%; padding: 7px 10px; border: 1px solid #ced4da; border-radius: 3px; font: 14px "Cairo", Tahoma, sans-serif; background: #fff; color: #333; }
textarea.form-control { min-height: 80px; resize: vertical; }
.radio-line { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; font-weight: 700; }
.radio-line label { cursor: pointer; }
#out pre { white-space: pre-wrap; margin: 12px 0 10px; background: #fff; border: 1px dashed #aaa; padding: 10px; font: 14px "Cairo", Tahoma, sans-serif; }
#out .buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.site-footer { background: #1d232b; color: #b8c0ca; font-size: 14px; }
.site-footer .container { padding-top: 44px; padding-bottom: 20px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #b8c0ca; }
.site-footer a:hover { color: #fff; }
.copyright { background: #151a20; color: #8a949f; font-size: 13px; }
.copyright .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.copyright a { color: #b8c0ca; }

/* floating whatsapp */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* logo helpers (from the old site) */
.brand svg text { unicode-bidi: normal; }

/* responsive */
@media (max-width: 991px) {
  .products, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries > div:nth-child(3) { border-inline-start: 0; }
  .industries > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail .media img { height: 340px; }
  .col-4, .col-8, .col-6, .col-3 { width: 100%; }
  .col-4 + .col-8, .col-8 + .col-4, .col-6 + .col-6 { margin-top: 24px; }
  .main-nav a { padding: 22px 9px; font-size: 14px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; border-top: 1px solid var(--border); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--border); }
}
@media (max-width: 600px) {
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .brand svg { height: 50px; }
  .banner .container { padding-top: 60px; padding-bottom: 60px; }
  .banner h1 { font-size: 25px; }
  .banner p { font-size: 15px; }
  .products, .posts, .gallery, .industries, .footer-cols, .form-row { grid-template-columns: 1fr; }
  .industries > div { border-inline-start: 0 !important; border-top: 1px solid var(--border); }
  .industries > div:first-child { border-top: 0; }
  .gallery img { height: 240px; }
  .section { padding: 36px 0; }
  .section-title h2 { font-size: 22px; }
  .page-title h1 { font-size: 23px; }
  .product-detail .media img { height: 280px; }
  .map iframe { height: 300px; }
}
