/*
Theme Name: Pura Research
Theme URI: https://puraresearch.shop
Author: Pura Research
Author URI: https://puraresearch.shop
Description: A professional e-commerce theme for Pura Research - research-grade peptides and compounds. Features WooCommerce support, modern design with navy blue color scheme, and optimized for laboratory product sales.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pura-research
Tags: e-commerce, woocommerce, clean, modern, professional
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================
   WORDPRESS GLOBAL RESET
   Kill any borders/margins WP injects
   =================================== */

html, body {
  border: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* WordPress adds .wp-site-blocks with padding */
.wp-site-blocks,
.wp-block-group,
.entry-content > *:first-child,
.wp-block-post-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Kill the default orange/red currentColor border on all elements */
*, *::before, *::after {
  border-color: transparent;
}

/* But restore intentional borders explicitly */
input, textarea, select {
  border-color: #d1d5db;
}

/* ===================================
   CSS VARIABLES
   =================================== */

:root {
  /* Color Tokens */
  --background: 0 0% 100%;
  --foreground: 220 30% 10%;
  
  --card: 0 0% 100%;
  --card-foreground: 220 30% 10%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 220 30% 10%;
  
  --primary: 220 60% 15%;
  --primary-foreground: 0 0% 100%;
  
  --secondary: 215 70% 50%;
  --secondary-foreground: 0 0% 100%;
  
  --muted: 220 20% 95%;
  --muted-foreground: 220 10% 45%;
  
  --accent: 200 80% 55%;
  --accent-foreground: 0 0% 100%;
  
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  
  --border: 220 15% 88%;
  --input: 220 15% 88%;
  --ring: 215 70% 50%;
  
  --radius: 0.375rem;
  
  /* Custom Navy & Blue Tokens */
  --navy: 220 60% 15%;
  --navy-light: 220 50% 22%;
  --navy-dark: 220 65% 10%;
  --blue-accent: 215 70% 50%;
  --blue-glow: 200 80% 55%;
  --sale-red: 0 75% 55%;
  --success: 145 60% 40%;
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Background Colors */
.bg-navy {
  background-color: hsl(var(--navy));
}

.bg-navy-light {
  background-color: hsl(var(--navy-light));
}

.bg-navy-dark {
  background-color: hsl(var(--navy-dark));
}

.bg-blue-accent {
  background-color: hsl(var(--blue-accent));
}

.bg-sale {
  background-color: hsl(var(--sale-red));
}

/* Text Colors */
.text-navy {
  color: hsl(var(--navy));
}

.text-blue-accent {
  color: hsl(var(--blue-accent));
}

.text-white {
  color: white;
}

/* Heading Styles */
.heading-display {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   HEADER / NAVBAR
   =================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(220, 60, 15, 0.95);
  backdrop-filter: blur(10px);
}

.top-bar {
  background-color: hsl(var(--navy-dark));
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: #d1d5db;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar a {
  color: #d1d5db;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: white;
}

.main-header {
  background-color: hsl(var(--navy));
  padding: 0.875rem 0;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 4rem;
  }
}

/* Main Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: hsl(var(--blue-accent));
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-form {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .search-form {
    display: block;
    width: 12rem;
  }
}

.search-form input {
  width: 100%;
  height: 2.25rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  background-color: hsl(var(--navy-light));
  border: 1px solid hsl(var(--navy-light));
  border-radius: var(--radius);
  color: white;
  font-size: 0.875rem;
}

.search-form input::placeholder {
  color: #9ca3af;
}

.search-form input:focus {
  outline: none;
  ring: 2px;
  ring-color: hsl(var(--blue-accent));
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* Icon Buttons */
.icon-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}

.icon-btn:hover {
  color: hsl(var(--blue-accent));
  background-color: hsl(var(--navy-light));
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: hsl(var(--blue-accent));
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-btn {
  display: none;
  background-color: hsl(var(--blue-accent));
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .cta-btn {
    display: inline-block;
  }
}

.cta-btn:hover {
  background-color: hsl(215 70% 40%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.mobile-nav.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-list a {
  color: white;
  font-weight: 500;
  padding: 0 0.5rem;
  display: block;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-nav-list a:hover {
  color: hsl(var(--blue-accent));
}

/* ===================================
   MARQUEE / SHIPPING BANNER
   =================================== */

.marquee-container {
  background-color: hsl(var(--blue-accent));
  overflow: hidden;
  padding: 0.75rem 0;
  position: relative;
  border: none !important;
  outline: none;
  box-shadow: none;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 3rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background-color: hsl(var(--navy-dark));
  color: white;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: hsl(var(--blue-accent));
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--blue-accent));
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--blue-accent));
  flex-shrink: 0;
}

.contact-item span {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-disclaimer {
  color: #6b7280;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-copyright {
  color: #4b5563;
  font-size: 0.75rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: hsl(var(--blue-accent));
  color: white;
}

.btn-primary:hover {
  background-color: hsl(215 70% 40%);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid hsl(var(--navy));
  color: hsl(var(--navy));
}

.btn-outline:hover {
  background-color: hsl(var(--navy));
  color: white;
}

.btn-white {
  background-color: white;
  color: hsl(var(--navy));
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   WORDPRESS CONTENT
   =================================== */

.site-content {
  min-height: 60vh;
  padding: 0;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Post/Page Content */
.entry-content {
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

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

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* ===================================
   WOOCOMMERCE COMPATIBILITY
   =================================== */

.woocommerce-page .container {
  max-width: 1400px;
}

.woocommerce .button,
.woocommerce button.button {
  background-color: hsl(var(--blue-accent));
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  transition: background-color 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background-color: hsl(215 70% 40%);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .site-content {
    padding: 2rem 0;
  }
  
  .content-wrapper {
    padding: 0 1rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===================================
   AGE VERIFICATION MODAL
   =================================== */

.age-verification-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-verification-modal {
  background: linear-gradient(135deg, hsl(var(--navy)) 0%, hsl(var(--navy-dark)) 100%);
  border-radius: 1rem;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.age-modal-content {
  text-align: center;
}

.age-modal-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.age-btn {
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  min-width: 140px;
}

.age-btn-decline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.age-btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.05);
}

.age-btn-accept {
  background-color: hsl(var(--blue-accent));
  border-color: hsl(var(--blue-accent));
  color: white;
}

.age-btn-accept:hover {
  background-color: hsl(215, 70%, 40%);
  border-color: hsl(215, 70%, 40%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

@media (max-width: 480px) {
  .age-verification-modal {
    padding: 2rem 1.5rem;
  }
  
  .age-modal-logo {
    height: 60px !important;
    margin-bottom: 1.5rem !important;
  }
  
  .age-btn {
    width: 100%;
    min-width: 0;
  }
}
