/*!
 * Theme Name: Dominican Cigars
 * Theme URI: https://dominicancigars.com.do
 * Description: Premium WordPress Theme inspired by Apple design aesthetic. Perfect for luxury cigar businesses.
 * Version: 1.0.0
 * Author: Dominican Cigars Team
 * Author URI: https://dominicancigars.com.do
 * License: GPL v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: dominican-cigars
 * Domain Path: /languages
 * Requires at least: 6.0
 * Requires PHP: 7.4
 * Tags: e-commerce, woocommerce, responsive, dark-mode, elegant
 */

/* 
 * Dominican Cigars Theme - Main Stylesheet
 * Premium WordPress Theme with Apple-inspired Design
 */

/* ===== CSS VARIABLES & ROOT ===== */
:root {
    --primary-dark: #1a1a1a;
    --primary-light: #f5f5f7;
    --accent-gold: #d4a574;
    --accent-dark-gold: #8b6f47;
    --text-primary: #1d1d1f;
    --text-secondary: #6f6f77;
    --border-light: #e5e5e7;
    --border-dark: #424245;
    --white: #ffffff;
    --black: #000000;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body.dark-mode {
    background: var(--primary-dark);
    color: var(--primary-light);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.375rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-dark-gold);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

body.dark-mode header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: var(--border-dark);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

body.dark-mode .logo {
    color: var(--primary-light);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

body.dark-mode nav a {
    color: var(--primary-light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-icon {
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.nav-icon:hover {
    color: var(--accent-gold);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 100%);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-title {
    font-size: 4.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    gap: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.875rem 2.5rem;
    border-radius: 999px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--accent-dark-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--accent-gold);
}

.btn-dark {
    background: var(--text-primary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--accent-gold);
    color: var(--white);
}

/* ===== CONTAINER & SPACING ===== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 2rem;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products {
    background: var(--primary-light);
}

body.dark-mode .featured-products {
    background: #2a2a2a;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .product-card {
    background: #1f1f1f;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 100%);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--white);
}

body.dark-mode .features {
    background: var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 165, 116, 0.3);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: var(--accent-gold);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 4rem 0;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    color: var(--white);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--accent-gold);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--accent-gold);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--primary-light);
    padding: 4rem 2rem 2rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--primary-light);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 50%;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-wrapper {
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}
