/*
Theme Name: PTI Modern
Theme URI: https://www.pti-world.com
Author: PTI
Description: Custom lightweight theme for Protective Technologies International. No page builder. WooCommerce ready.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: pti-modern
*/

:root {
  --navy: #0d2c40;
  --navy-2: #123a54;
  --blue: #0e6ba8;
  --blue-soft: #e8f1f8;
  --accent: #e07a4a;
  --accent-dark: #c9602f;
  --ink: #1d2a33;
  --muted: #5b6b76;
  --line: #e3e9ee;
  --bg: #f6f8fa;
  --card-shadow: 0 1px 2px rgba(13, 44, 64, .06), 0 8px 24px rgba(13, 44, 64, .08);
  --radius: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--navy);
  line-height: 1.22;
  margin: 1.4em 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 2.35rem; margin-top: 0; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
figure { margin: 1.6em 0; }
figure img { border-radius: var(--radius); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }

/* kicker / title / divider pattern */
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 0 0 12px; }
.sec-head .divider {
  width: 56px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-top: 16px;
}
.sec-head.center .divider { margin-left: auto; margin-right: auto; }
.sec-head p { color: var(--muted); margin-bottom: 0; }

/* buttons */
.btn, .button, button[type="submit"], input[type="submit"], .single_add_to_cart_button, .checkout-button, .nf-form-content input[type="button"] {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .nf-form-content input[type="button"]:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #cfdce6; font-size: .85rem; }
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 7px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.topbar nav li { margin: 0; }

/* ---------- header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 13px; color: var(--navy);
  font-weight: 600; font-size: .93rem; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.main-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%;
  background: #fff; min-width: 250px; padding: 8px;
  border-radius: 10px; box-shadow: var(--card-shadow); border: 1px solid var(--line);
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 9px 12px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; color: var(--navy); display: inline-flex; }
.cart-link .count {
  position: absolute; top: -7px; right: -10px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 1px 6px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #14486b 60%, var(--blue) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero-photo {
  background-image: url('/wp-content/uploads/2024/11/Screen-Shot-2024-11-05-at-11.49.48-AM-2048x666.jpg');
  background-size: cover; background-position: center 35%;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,32,48,.92) 0%, rgba(10,32,48,.78) 38%, rgba(13,44,64,.32) 70%, rgba(13,44,64,.08) 100%);
}
.hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px;
  position: relative; z-index: 1;
}
.hero-copy { max-width: 640px; }
.hero .kicker { color: #f3a37f; }
.hero h1 { color: #fff; font-size: 2.7rem; margin: 0 0 18px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p.lead { font-size: 1.13rem; color: #e2ecf3; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.trustbar { background: var(--navy-2); }
.trustbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.trustbar .t-item { display: flex; gap: 10px; align-items: center; color: #cfdce6; font-size: .92rem; font-weight: 500; }
.trustbar .t-item svg { flex: none; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 2px rgba(13,44,64,.04);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.card .card-img {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 8px; margin-bottom: 6px; overflow: hidden;
}
.card .card-img img { max-height: 170px; width: auto; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; }
.card .more:after { content: " →"; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--card-shadow); }
.split ul.checks { list-style: none; padding: 0; }
.split ul.checks li, ul.checks li {
  padding-left: 28px; position: relative; margin-bottom: 9px;
}
.split ul.checks li:before, ul.checks li:before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; }
.cta-band-in {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d7e3ec; margin: 0; }
.cta-band .phone { font-size: 1.5rem; font-weight: 800; color: #fff; }

/* ---------- page hero band ---------- */
.page-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.page-band-in { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
.page-band h1 { color: #fff; margin: 0; font-size: 2.1rem; }
.page-band .crumbs { font-size: .85rem; color: #9fb6c6; margin-bottom: 10px; }
.page-band .crumbs a { color: #cfdce6; }
.entry-content { max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; }
.entry-content.wide { max-width: var(--maxw); }
.entry-content img { border-radius: var(--radius); }
.entry-content iframe { max-width: 100%; border-radius: var(--radius); }
.entry-content .cols { display: grid; gap: 28px; margin: 1.5em 0; align-items: center; }
.entry-content .cols figure { margin: 0; }
.entry-content .cols .btn { width: 100%; text-align: center; }
.entry-content .cols-2 { grid-template-columns: 1fr 1fr; }
.entry-content .cols-3 { grid-template-columns: repeat(3, 1fr); }
.entry-content .cols-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .pti-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.entry-content .pti-card h3 { margin-top: 8px; }
.entry-content details {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px;
}
.entry-content details summary { font-weight: 600; color: var(--navy); cursor: pointer; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.6em 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* blog */
.post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 72px; }
.post-list .card h3 { font-size: 1.05rem; margin-top: 4px; }
.pagination { text-align: center; padding-bottom: 60px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 3px; }
.pagination .current { background: var(--navy); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c9d5; margin-top: 0; }
.footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; letter-spacing: .03em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c9d5; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.site-footer .f-about { font-size: .92rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-in {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem;
}

/* ---------- WooCommerce polish ---------- */
.woocommerce .products ul.products, ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 0 1.5em; padding: 0; list-style: none; }
ul.products::before, ul.products::after { display: none !important; content: none !important; }
ul.products li.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; transition: transform .18s, box-shadow .18s;
  width: auto !important; float: none !important; margin: 0 !important;
  display: flex; flex-direction: column;
}
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; width: 100%; }
ul.products li.product img {
  border-radius: 8px; height: 210px !important; width: auto !important;
  max-width: 100%; object-fit: contain; margin: 0 auto 12px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: .98rem; color: var(--navy); font-weight: 600; line-height: 1.35;
  margin: 0 0 6px; padding: 0;
}
ul.products li.product .price {
  color: var(--accent-dark); font-weight: 700; display: block; margin: auto 0 0; padding-top: 8px; font-size: 1.02rem;
}
ul.products li.product .price del { color: var(--muted); font-weight: 500; opacity: .75; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button { margin: 14px auto 0; font-size: .88rem; padding: 10px 22px; align-self: center; }
.woocommerce-page .woocommerce { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 72px; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product p.price { color: var(--accent-dark); font-size: 1.5rem; font-weight: 800; }
.woocommerce div.product .product_title { font-size: 1.9rem; }
.woocommerce-breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 24px !important; }
.woocommerce table.shop_table { border-radius: var(--radius); border: 1px solid var(--line); }
.onsale { background: var(--accent) !important; border-radius: 999px !important; }

/* kill Woo's default purple buttons everywhere (incl. .alt and block checkout) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit, .woocommerce #respond input#submit.alt,
.wc-block-components-button, .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button, .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--accent) !important; color: #fff !important;
  border: none !important; border-radius: 8px !important; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.wc-block-components-button:hover, .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: var(--accent-dark) !important; color: #fff !important;
}
.woocommerce a.button.disabled, .woocommerce a.button:disabled,
.woocommerce button.button:disabled, .woocommerce button.button.disabled {
  background-color: var(--accent) !important; opacity: .5;
}
.woocommerce-info, .woocommerce-message { border-top-color: var(--blue) !important; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--blue) !important; }

/* single product layout polish */
.woocommerce div.product div.summary p { margin-bottom: .9em; }
.woocommerce div.product .woocommerce-product-details__short-description iframe { max-width: 100%; border-radius: var(--radius); }
.woocommerce div.product .woocommerce-product-details__short-description img { border-radius: 8px; }
.woocommerce div.product form.cart { margin: 1.3em 0 !important; padding: 16px 0; border-top: 1px solid var(--line); }
.woocommerce div.product form.cart .qty { padding: 11px 8px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce div.product .product_meta { color: var(--muted); font-size: .9rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--navy); }
.woocommerce div.product .related.products h2,
.woocommerce div.product .woocommerce-tabs h2 { font-size: 1.5rem; }
.related.products, .woocommerce-tabs, .up-sells { clear: both; padding-top: 1.5em; }

/* ninja forms */
.nf-form-content input[type=text], .nf-form-content input[type=email], .nf-form-content input[type=tel],
.nf-form-content textarea, .nf-form-content select,
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: inherit; font-size: 1rem; width: 100%;
}
.nf-form-content label { font-weight: 600; font-size: .9rem; color: var(--navy); }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 72px; }
.info-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: fit-content; }
.info-card h3 { margin-top: 0; }
.info-card .row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-card .row svg { flex: none; margin-top: 3px; color: var(--blue); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { padding: 64px 24px; }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .trustbar-in { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  ul.products, .woocommerce .products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .entry-content .cols-3, .entry-content .cols-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  .brand img { height: 42px; }
  .topbar nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: fixed; inset: 64px 0 0 0; background: #fff; overflow: auto; padding: 18px; margin: 0; z-index: 49; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav .sub-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 18px; }
  .header-cta .btn { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .trustbar-in { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  ul.products, .woocommerce .products ul.products { grid-template-columns: 1fr !important; }
  .post-list { grid-template-columns: 1fr; }
  .entry-content .cols, .entry-content .cols-2, .entry-content .cols-3, .entry-content .cols-4 { grid-template-columns: 1fr; }
}
