/*
Theme Name: NYES Protect
Theme URI: https://nyesprotect.com
Author: NYES Protect
Description: Official theme for NYES Protect — American-made PPE from Brooklyn, NY.
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nyes-protect
Tags: custom, responsive, bebas-neue
*/

/* =====================================================================
   CSS Custom Properties
   ===================================================================== */
:root {
  --dark: #171c1d;
  --dark-2: #0e1928;
  --dark-3: #111d2e;
  --navy: #1a2744;
  --navy-2: #243660;
  --blue: #7798c0;
  --blue-hover: #5f80aa;
  --blue-light: #7798c0;
  --blue-pale: #aec6e8;
  --steel: #2e4e7e;
  --ticker-bg: #7798c0;
  --insights-bg: #7798c0;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray: #9ca3af;
  --gray-light: #e2e8f0;
  --card-blue: #7798c0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .18);
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================================
   Base Reset
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* =====================================================================
   Layout
   ===================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================================================================
   Typography — Shared
   ===================================================================== */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.heading-blue {
  color: var(--blue);
}

.heading-dark {
  color: #0b1220;
}

.heading-white {
  color: var(--white);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  background: #7798c0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid #7798c0;
  transition: background var(--transition), color var(--transition);
}

.btn-primary:hover {
  background: transparent;
  color: #7798c0;
}

.btn-outline {
  display: inline-block;
  padding: 10px 18px;
  background: transparent;
  color: #7798c0;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid #7798c0;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: #7798c0;
  background: rgba(119, 152, 192, .12);
}

.btn-outline-light {
  display: inline-block;
  padding: 10px 18px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid rgba(255, 255, 255, .4);
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.btn-outline-dark {
  display: inline-block;
  padding: 12px 32px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: var(--blue) 2px solid;
  transition: background var(--transition), color var(--transition);
}

.btn-outline-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-dark {
  display: inline-block;
  padding: 10px 24px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--dark);
  transition: background var(--transition), color var(--transition);
}

.btn-dark:hover {
  background: transparent;
  color: var(--dark);
}

/* =====================================================================
   Scroll Reveal Animations
   ===================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   HEADER — Sister Brand Bar
   ===================================================================== */
.brand-bar {
  background: var(--dark);
  border-bottom: 1px solid rgba(119, 152, 192, .2);
  padding: 5px 0;
}

.brand-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
}

.brand-bar-link {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(119, 152, 192, .6);
  text-transform: uppercase;
  transition: color var(--transition);
  text-decoration: none;
}

.brand-bar-link:hover {
  color: var(--white);
}

.brand-bar-link--active {
  color: var(--white);
}

.brand-bar-divider {
  color: rgba(119, 152, 192, .3);
  font-size: .7rem;
}

/* =====================================================================
   HEADER — Top Bar
   ===================================================================== */
.header-topbar {
  background: var(--dark);
  padding: 7px 0;
  border-bottom: 1px solid rgba(119, 152, 192, .35);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.topbar-left {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #7798c0;
  font-family: var(--font-body);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #7798c0;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.topbar-link:hover {
  color: var(--white);
}

.topbar-link svg {
  color: #7798c0;
}

/* =====================================================================
   HEADER — Main Nav
   ===================================================================== */
.header-main {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(119, 152, 192, .35);
}

.header-main-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 80px;
}

/* Dual logo group */
.logo-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.25rem;
  padding-right: 2rem;
  margin-right: 1.5rem;
  border-right: 1px solid rgba(119, 152, 192, .35);
}

.sister-logo,
.site-logo {
  display: flex;
  align-items: center;
  align-self: center;
  text-decoration: none;
  padding: 14px 0;
}

.logo-divider {
  width: 1px;
  height: 40px;
  background: rgba(119, 152, 192, .5);
  flex-shrink: 0;
}

/* hide the old bar element if present */
.logo-bar {
  display: none;
}

.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* Nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover .nav-link {
  color: var(--white);
}

.caret {
  transition: transform var(--transition);
  opacity: .6;
}

.nav-item:hover .caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, .3);
  border-top: 3px solid #3d6491;
  border-radius: 4px 4px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: .65rem 1.2rem;
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

.nav-dropdown li a:hover {
  color: var(--white);
  background: var(--dark-2);
  padding-left: 1.5rem;
}

/* CTA Button */
.nav-cta {
  flex-shrink: 0;
  padding: 8px 22px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 2px solid var(--blue);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Header scrolled state — collapse top bar, no shadow */
.site-header.is-scrolled .header-topbar {
  height: 0;
  overflow: hidden;
  padding: 0;
}

/* =====================================================================
   Inner page content wrapper
   ===================================================================== */
.site-main {
  min-height: 60vh;
}

/* Posts */
.entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.entry-content {
  line-height: 1.75;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.posts-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.post-card .post-title {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 600;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, .8);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr 360px;
  gap: 4rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  align-items: start;
  max-width: 1400px;
  padding-left: 3rem;
  padding-right: 3rem;
}

.footer-bottom .container {
  max-width: 1400px;
  padding-left: 3rem;
  padding-right: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  padding-right: 0;
  margin-right: 0;
  border-right: none;
  align-self: auto;
}

.footer-address {
  margin-top: 16px;
}

.footer-address p {
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin: 0 0 .75rem;
}

.footer-address p:last-child {
  margin-bottom: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8rem;
  justify-content: center;
  text-align: left;
}

.footer-map {
  grid-column: 3;
  grid-row: 1;
  align-self: stretch;
  min-height: 260px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 4px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul li a {
  font-size: .82rem;
  color: var(--white);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  background: var(--dark-2);
  padding: 1rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--white);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .footer-nav {
    grid-template-columns: repeat(2, auto);
    gap: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-map {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .footer-nav {
    grid-template-columns: repeat(2, auto);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .logo-group {
    gap: .75rem;
    padding-right: 0;
    margin-right: 0;
    border-right: none;
  }

  .site-logo-img {
    height: 36px;
  }

  .logo-divider {
    height: 30px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    z-index: 150;
  }

  .main-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .header-main {
    position: relative;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 0 1rem;
    gap: 0;
  }

  .nav-link {
    padding: .75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    background: rgba(0, 0, 0, .2);
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}