/*
Theme Name: Lenz Arts
Theme URI: https://lenzarts.com
Author: Lenz Arts
Author URI: https://lenzarts.com
Description: Custom WordPress theme for Lenz Arts - Santa Cruz's Premier Art Supply Store & Custom Framing since 1968. Features responsive design, dark/light mode toggle, and modern styling.
Version: 1.0.0
Tested up to: 6.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lenz-arts
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, theme-options, translation-ready, blog, e-commerce, portfolio
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg-color: #f9f7f1;
  --text-color: #3a3a3a;
  --heading-color: #2c2c2c;
  --accent-color: #6A0DAD;
  --accent-hover: #8A3FC7;
  --link-color: #00A3E0;
  --link-hover: #0082B8;
  --cyan-color: #01a0c6;
  --box-shadow: rgba(106, 13, 173, 0.15);
  --nav-bg: rgba(249, 247, 241, 0.95);
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --heading-color: #f1f1f1;
  --accent-color: #8A3FC7;
  --accent-hover: #9F5BD4;
  --link-color: #33B7E8;
  --link-hover: #5BC4ED;
  --box-shadow: rgba(138, 63, 199, 0.4);
  --nav-bg: rgba(18, 18, 18, 0.95);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding-top: 80px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  margin-top: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

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

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--box-shadow);
  transition: all 0.4s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--accent-color);
}

.nav-menu .current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(106, 13, 173, 0.1);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border: none;
}

.hamburger:hover {
  background: rgba(106, 13, 173, 0.2);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  display: none;
  flex-direction: column;
  padding: 0.75rem 0;
  box-shadow: 0 8px 32px var(--box-shadow);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(106, 13, 173, 0.1);
}

.mobile-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.mobile-menu a:hover {
  color: var(--accent-color);
}

.theme-toggle-mobile {
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  border-top: 1px solid rgba(106, 13, 173, 0.2);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  color: var(--text-color);
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(106, 13, 173, 0.65), rgba(1, 160, 198, 0.65)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: clamp(4rem, 8vh, 8rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  min-height: clamp(500px, 60vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 60ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 400px;
  }
}

/* ===== BUTTONS ===== */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn,
.cta-button {
  display: inline-block;
  background: white;
  color: var(--accent-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn:hover,
.cta-button:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
}

.btn-secondary,
.cta-secondary {
  background: var(--cyan-color);
  color: white;
}

.btn-secondary:hover,
.cta-secondary:hover {
  background: #0088B3;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== MAIN CONTENT ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(106, 13, 173, 0.1);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--box-shadow);
}

.feature h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* ===== STATS SECTION ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  text-align: center;
}

.stat {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-number {
    font-size: 2rem;
  }
}

/* ===== GIFT CARD PROMO ===== */
.gift-card-promotion {
  background: #eeeeee;
  padding: 5rem 2rem;
  margin: 4rem 0;
  text-align: center;
}

[data-theme="dark"] .gift-card-promotion {
  background: #2a2a2a;
}

.gift-card-promotion h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #333;
}

[data-theme="dark"] .gift-card-promotion h2 {
  color: #fff;
}

.gift-card-promotion p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .gift-card-promotion p {
  color: #ccc;
}

.gift-card-cta {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.gift-card-cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #6A0DAD 0%, #01a0c6 100%);
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.site-footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.75rem;
}

.site-footer a:hover {
  opacity: 0.8;
}

.newsletter-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-info {
  font-size: 0.9rem;
  margin: 0;
}

.footer-info em {
  display: block;
  margin-top: 0.5rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

.back-to-top.show {
  display: flex;
}

/* ===== PAGE TEMPLATES ===== */
.page-header {
  background: linear-gradient(135deg, var(--accent-color), var(--cyan-color));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin: 0;
  font-size: 2.5rem;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(106, 13, 173, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

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

/* ===== WORDPRESS CORE STYLES ===== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  padding: 0.5rem 0;
}

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

/* ===== WORDPRESS BLOCKS ===== */
.wp-block-button__link {
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
}

.wp-block-button__link:hover {
  background: var(--accent-hover);
  color: white;
}
