/*
Theme Name: AnubisBlue Designs
Theme URI: https://anubisblue.com
Author: AnubisBlue Designs
Author URI: https://anubisblue.com
Description: Custom theme for AnubisBlue Designs — custom apparel, branded swag, vinyl stickers, and dealer services. Twin Falls, Idaho.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: anubisblue
*/

/* =====================
   CSS VARIABLES
   ===================== */
:root {
  --blue-dark: #00054D;
  --blue-mid: #0008A0;
  --lime: #BAFF00;
  --gray: #939393;
  --white: #FFFFFF;
  --black: #000000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--blue-dark);
  color: var(--white);
  overflow-x: hidden;
}

/* =====================
   LOGO FIX
   ===================== */
.header__logo img,
.custom-logo,
.custom-logo-link img {
  height: 46px;
  width: auto !important;
  max-width: none !important;
}

/* =====================
   NAV
   ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 3rem;
  background: rgba(0,5,77,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--lime);
}
.nav-logo img { height: 46px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--lime); }
.nav-cta {
  background: var(--lime); color: var(--blue-dark) !important;
  padding: 0.45rem 1.3rem;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--white) !important; }

/* =====================
   MOBILE NAV
   ===================== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(0,5,77,0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0; margin: 0;
}
.nav-mobile-links li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0.4rem 1rem;
  transition: color 0.2s;
  text-align: center;
}
.nav-mobile-links li a:hover,
.nav-mobile-links li a.active,
.nav-mobile-links .current-menu-item > a { color: var(--lime); }
.nav-mobile-links li a.nav-cta {
  background: var(--lime);
  color: var(--blue-dark) !important;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  margin-top: 1rem;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  padding: 0.65rem 2rem;
}
.nav-mobile-links li a.nav-cta:hover { background: var(--white); }

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-block; background: var(--lime); color: var(--blue-dark);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 2.2rem; text-decoration: none;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 2px solid var(--lime); color: var(--lime);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 2.2rem; text-decoration: none;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--lime); color: var(--blue-dark); transform: translateY(-2px); }
.btn-dark {
  display: inline-block; background: var(--blue-dark); color: var(--lime);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 2.2rem; text-decoration: none;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--black); }

/* =====================
   SECTION COMMON
   ===================== */
.section-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem,4vw,3.2rem); font-weight: 900;
  text-transform: uppercase; line-height: 1; margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.7); max-width: 640px;
}

/* =====================
   PAGE HERO
   ===================== */
.page-hero {
  padding: 9rem 3rem 4rem;
  background: linear-gradient(135deg, rgba(0,8,160,0.5) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.page-hero .hex-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='69' viewBox='0 0 60 69' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 17.3 L60 51.9 L30 69.2 L0 51.9 L0 17.3Z' fill='none' stroke='rgba(186,255,0,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 69px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 800px; }
.breadcrumb {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--lime); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem,6vw,5rem); font-weight: 900;
  text-transform: uppercase; line-height: 0.95; margin-bottom: 1.25rem;
}
.page-hero h1 span { color: var(--lime); }
.page-hero .lead {
  font-size: 1.1rem; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,0.75); max-width: 580px;
  border-left: 3px solid var(--lime); padding-left: 1.25rem;
}

/* =====================
   CONTENT SECTIONS
   ===================== */
.content-section { padding: 5rem 3rem; }
.content-section.dark { background: rgba(0,0,0,0.3); }
.content-section.accent { background: rgba(0,8,160,0.2); }
.content-inner { max-width: 1100px; margin: 0 auto; }

/* =====================
   CARD GRID — 2x2
   ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px; background: rgba(186,255,0,0.12); margin-top: 2.5rem;
}
.card {
  background: var(--blue-dark); padding: 2.25rem; position: relative;
  overflow: hidden; transition: background 0.3s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover { background: rgba(0,8,160,0.5); }
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 0.6rem;
}
.card p { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.card-tag {
  display: inline-block; margin-top: 1rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(186,255,0,0.3);
  padding: 0.2rem 0.65rem;
  clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}

/* =====================
   CALLOUT STRIP
   ===================== */
.callout-strip {
  background: var(--lime); color: var(--blue-dark); padding: 4rem 3rem;
  position: relative; overflow: hidden;
}
.callout-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; max-width: 1100px; margin: 0 auto; flex-wrap: wrap;
}
.callout-strip .section-label { color: rgba(0,5,77,0.55); }
.callout-strip .section-title { color: var(--blue-dark); }
.callout-strip p { font-size: 1rem; line-height: 1.6; color: rgba(0,5,77,0.7); max-width: 520px; }
.callout-ghost {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(5rem,12vw,10rem);
  font-weight: 900; color: rgba(0,5,77,0.08); pointer-events: none; line-height: 1;
}

/* =====================
   BLOG
   ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5px;
  background: rgba(186,255,0,0.12);
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--blue-dark);
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.blog-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.blog-card:hover { background: rgba(0,8,160,0.5); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime);
}
.blog-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
  color: var(--white);
}
.blog-card-excerpt { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.55); flex: 1; }
.blog-card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--lime); margin-top: 0.5rem;
}

/* =====================
   SINGLE POST / PAGE
   ===================== */
.post-content { max-width: 780px; margin: 0 auto; padding: 5rem 3rem; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; text-transform: uppercase;
  color: var(--white); margin: 2rem 0 0.75rem;
}
.post-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-content h3 { font-size: 1.4rem; }
.post-content p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.post-content a { color: var(--lime); }
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5rem; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 1.25rem; }
.post-content img { width: 100%; height: auto; margin: 1.5rem 0; }
.post-content blockquote {
  border-left: 3px solid var(--lime); padding-left: 1.25rem;
  margin: 1.5rem 0; font-family: 'Caveat', cursive;
  font-size: 1.3rem; color: var(--lime);
}
.post-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.post-meta span { color: var(--lime); }

/* =====================
   PORTFOLIO GRID
   ===================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(186,255,0,0.12);
  margin-top: 2.5rem;
}
.portfolio-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(0,8,160,0.3);
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,5,77,0.92) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.25rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .item-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 0.3rem;
}
.portfolio-overlay .item-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
  color: var(--white);
}

/* =====================
   FILTER BAR
   ===================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(186,255,0,0.3);
  color: rgba(255,255,255,0.5);
  background: transparent; cursor: pointer;
  clip-path: polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--lime); color: var(--blue-dark); border-color: var(--lime);
}
.portfolio-item.hidden { display: none; }

/* =====================
   CONTACT FORM
   ===================== */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lime);
}
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(186,255,0,0.2);
  color: var(--white); padding: 0.7rem 1rem;
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--lime); }
.form-group select option { background: var(--blue-dark); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--black); padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  border-top: 2px solid rgba(186,255,0,0.2);
}
footer img { height: 36px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.06em; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }

/* =====================
   REVEAL ANIMATION
   ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =====================
   WORDPRESS DEFAULTS
   ===================== */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 0 auto; }
img { max-width: 100%; height: auto; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  nav { padding: 0.75rem 1.5rem; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .content-section { padding: 3.5rem 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .callout-inner { flex-direction: column; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .post-content { padding: 3.5rem 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* =====================
   DROPDOWN NAV
   ===================== */
.nav-links li {
  position: relative;
}
.nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(0,5,77,0.98);
  border: 1px solid rgba(186,255,0,0.2);
  border-top: 2px solid var(--lime);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 200;
  backdrop-filter: blur(12px);
}
.nav-links li:hover > ul {
  display: block;
}
.nav-links li ul li {
  display: block;
  width: 100%;
}
.nav-links li ul li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.08em;
}
.nav-links li ul li a:hover {
  color: var(--lime);
  background: rgba(186,255,0,0.06);
}

/* MOBILE DROPDOWN */
.nav-mobile-links li ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.nav-mobile-links li.open > ul {
  display: flex;
}
.nav-mobile-links li ul li a {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 1rem;
}
.nav-mobile-links li ul li a:hover { color: var(--lime); }
.nav-mobile-toggle {
  cursor: pointer;
  user-select: none;
}
.nav-mobile-toggle::after {
  content: ' ▾';
  font-size: 0.7em;
  color: var(--lime);
}
.nav-mobile-links li.open > a.nav-mobile-toggle::after {
  content: ' ▴';
}
