/*
Theme Name: ValuriStories Luxury
Theme URI: https://valuristories.com
Author: ValuriStories Team
Author URI: https://valuristories.com
Description: A luxury WordPress theme for high-end pearl jewelry brand with bilingual support (EN/CN) and e-commerce integration ready for Shopee and TikTok Shop
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: valur-luxury
Tags: luxury, jewelry, e-commerce, bilingual, custom-header, custom-menu, featured-images
*/

:root {
  --color-primary: #C9A05C;
  --color-secondary: #1a1a1a;
  --color-accent: #f8f6f3;
  --color-rose-gold: #B76E79;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

header.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

nav.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

nav.main-navigation a {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

nav.main-navigation a:hover {
  color: var(--color-primary);
}

.language-switcher {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.language-switcher a {
  padding: 5px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  font-size: 12px;
}

.language-switcher a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  margin-top: 100px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 40px;
}

.hero-content h1 {
  font-size: 64px;
  margin-bottom: 20px;
  color: var(--color-secondary);
  letter-spacing: 2px;
}

.hero-content .subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  color: var(--color-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-info {
  padding: 30px;
  text-align: center;
}

.product-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-info .price {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 600;
}

footer.site-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-secondary);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  header.site-header .header-inner {
    padding: 15px 0;
  }
  
  .site-logo img {
    max-height: 45px;
  }
  
  nav.main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-white);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
  }
  
  nav.main-navigation.active {
    right: 0;
  }
  
  nav.main-navigation ul {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
  
  nav.main-navigation a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
    width: 100%;
  }
  
  .language-switcher {
    margin-left: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-accent);
  }
  
  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: 80px 0 60px;
    margin-top: 70px;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero-content .subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 30px;
  }
  
  .hero-content .hero-tagline {
    font-size: 11px !important;
    letter-spacing: 3px !important;
  }
  
  .hero-content .hero-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 20px auto 30px !important;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-card {
    max-width: 100%;
  }
  
  .product-image {
    height: 350px;
  }
  
  .product-info {
    padding: 25px;
  }
  
  .product-info h3 {
    font-size: 20px;
  }
  
  .btn-primary {
    padding: 12px 30px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
  
  footer.site-footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .product-image {
    height: 280px;
  }
  
  .product-info {
    padding: 20px;
  }
  
  nav.main-navigation {
    width: 90%;
  }
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.hero-section {
    animation: fadeIn 1.5s ease-in;
    background: linear-gradient(135deg, #f8f6f3 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 160, 92, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 160, 92, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.product-card:hover::before {
    opacity: 1;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .hero-section::before {
        display: none;
    }
}

/* Mobile-specific optimizations for homepage sections */

@media (max-width: 768px) {
    .brand-values {
        padding: 50px 0 !important;
    }
    
    .brand-values > .container > div {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
    
    .brand-values h3 {
        font-size: 36px !important;
    }
    
    .brand-values p {
        font-size: 12px !important;
    }
    
    .luxury-experience {
        padding: 60px 0 !important;
    }
    
    .luxury-experience > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .luxury-experience h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .luxury-experience p {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 20px !important;
    }
    
    .luxury-experience ul li {
        margin-bottom: 20px !important;
        font-size: 14px !important;
    }
    
    .luxury-experience .btn-primary {
        width: 100%;
        margin-top: 20px;
    }
    
    .luxury-experience > .container > div > div:last-child {
        padding: 40px 25px !important;
    }
    
    .page-hero {
        padding: 100px 0 60px !important;
        margin-top: 70px !important;
    }
    
    .page-hero h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .page-hero p {
        font-size: 14px !important;
    }
    
    .about-content h2 {
        font-size: 28px !important;
        margin-bottom: 25px !important;
    }
    
    .about-content p {
        font-size: 15px !important;
        line-height: 1.8 !important;
        margin-bottom: 20px !important;
    }
    
    .about-content > .container > div > div:nth-child(2) {
        margin-top: 60px !important;
        padding: 50px 30px !important;
    }
    
    .about-content > .container > div > div:nth-child(2) h2 {
        font-size: 24px !important;
        margin-bottom: 30px !important;
    }
    
    .about-content > .container > div > div:nth-child(2) > div {
        gap: 35px !important;
        margin-top: 35px !important;
    }
    
    .about-content > .container > div > div:nth-child(2) h3 {
        font-size: 18px !important;
    }
    
    .about-content > .container > div > div:nth-child(3) {
        margin-top: 60px !important;
    }
    
    .about-content > .container > div > div:nth-child(3) h2 {
        font-size: 24px !important;
    }
    
    .contact-content form {
        padding: 30px 25px !important;
    }
    
    .contact-content input,
    .contact-content textarea {
        font-size: 16px !important;
    }
    
    .contact-content > .container > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin-bottom: 40px !important;
    }
    
    .product-single > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .product-single .product-details h1 {
        font-size: 28px !important;
    }
    
    .product-single .product-meta {
        margin-top: 30px !important;
    }
    
    .product-single .product-meta .btn-primary {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .product-single .ecommerce-links > div {
        flex-direction: column !important;
    }
    
    .product-single .ecommerce-links a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-values h3 {
        font-size: 32px !important;
    }
    
    .luxury-experience h2 {
        font-size: 24px !important;
    }
    
    .luxury-experience > .container > div > div:last-child {
        padding: 30px 20px !important;
    }
    
    .page-hero h1 {
        font-size: 28px !important;
    }
    
    .about-content > .container > div > div:nth-child(2) {
        padding: 40px 25px !important;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    nav.main-navigation a {
        padding: 15px 0;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .page-hero {
        padding: 80px 0 50px !important;
    }
}
