/*
Theme Name: Himalayan Pink Salt
Description: A beautiful block theme for Himalayan pink salt businesses with easy content editing capabilities for marketers.
Version: 1.0.0
Author: Your Name
Text Domain: himalayan-salt
Tags: block-theme, business, e-commerce, one-column, wide-blocks, block-patterns, editor-style, full-site-editing
*/

/* CSS Custom Properties (Variables) */
:root {
    --primary-pink: #ec7c8a;
    --light-pink: #fce8ea;
    --dark-pink: #d6617a;
    --soft-pink: #f8d7da;
    --white: #ffffff;
    --black: #000000;
    --gray: #6b7280;
    --light-gray: #f9fafb;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 0rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-all: all 0.3s ease;
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding:0px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
    color: var(--gray);
}

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

a:hover {
    color: var(--dark-pink);
    text-decoration: underline;
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-all);
    cursor: pointer;
    font-size: 1rem;
}

.wp-block-button__link:hover {
    background-color: var(--dark-pink);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* Secondary button style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.wp-block-image {
    margin: 0 0 1.5rem 0;
}

.wp-block-image.aligncenter {
    text-align: center;
}

/* Cover blocks / Hero sections */
.wp-block-cover {
    border-radius: 0;
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
    padding: var(--spacing-xl);
}

/* Groups and containers */
.wp-block-group {
    margin-bottom: var(--spacing-lg);
}

/* Columns */
.wp-block-columns {
    gap: var(--spacing-xl);
    align-items: center;
}

.wp-block-column {
    flex: 1;
}

/* Custom Classes */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section .wp-block-cover {
    border-radius: 0;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

/* Product Cards */
.product-card {
    background-color: var(--light-pink);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-all);
    border: 1px solid transparent;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pink);
    background-color: var(--white);
}

.product-card .product-icon img {
    border-radius: var(--radius-lg);
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.product-card h3 {
    color: var(--black);
    margin: var(--spacing-md) 0 var(--spacing-xs) 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

.product-card p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--soft-pink) 100%);
    padding: var(--spacing-3xl) 0;
}

.stats-section .wp-block-columns {
    gap: var(--spacing-2xl);
}

.stats-section h2 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--black);
    margin-bottom: var(--spacing-xs);
}

.stats-section p {
    color: var(--black);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    margin: 0;
}

/* About Section */
.about-section {
    padding: var(--spacing-3xl) 0;
}

.about-section .wp-block-columns {
    align-items: center;
    gap: var(--spacing-3xl);
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.industry-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-all);
}

.industry-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-pink);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-content {
    font-style: italic;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.testimonial-author {
    font-weight: var(--font-weight-semibold);
    color: var(--black);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Contact Form */
.contact-form {
    background-color: var(--light-gray);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.contact-form .wp-block-group {
    margin-bottom: 0;
}

/* Timeline */
.timeline-item {
    background-color: var(--light-pink);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-pink);
}

.timeline-item h4 {
    color: var(--black);
    margin-bottom: var(--spacing-xs);
}

.timeline-item .timeline-year {
    font-weight: var(--font-weight-bold);
    color: var(--primary-pink);
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-pink);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
}

.site-footer h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.site-footer p, .site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.875rem;
}

/* Header/Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header .wp-block-navigation {
    justify-content: space-between;
    align-items: center;
}

.site-header .wp-block-site-logo {
    max-width: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .wp-block-columns {
        gap: var(--spacing-lg);
    }
    
    .stats-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-section h2 {
        font-size: 2rem;
    }
    
    .stats-section .wp-block-columns {
        gap: var(--spacing-lg);
    }
    
    .product-card {
        margin-bottom: var(--spacing-md);
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .wp-block-cover .wp-block-cover__inner-container,
    .product-card,
    .contact-form,
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .stats-section h2 {
        font-size: 1.75rem;
    }
    
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* --- Hero Slider (Slick) --- */
.hero-slider-container .hero-slide-item .wp-block-cover {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slider-container .slide-content {
    max-width: 600px;
    z-index: 2;
}

.hero-slider-container .slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-slider-container .slide-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-slider-container .slide-buttons {
    gap: 1rem;
}

/* Slick Overrides */
.slick-dotted.slick-slider {
    margin-bottom: 0;
}

.slick-dots {
    bottom: 25px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--white);
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
}

.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;

    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: var(--transition-all);
}
.slick-prev:hover, .slick-next:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slick-prev { left: 25px; }
.slick-next { right: 25px; }

.slick-prev:before, .slick-next:before {
    font-size: 24px;
    color: var(--white);
    opacity: 0.9;
    text-shadow: none;
}

/* Block Editor Specific Styles */
.block-editor-page .wp-block-columns {
    gap: var(--spacing-lg);
}

.block-editor-page .hero-section {
    min-height: 400px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-in-out forwards;
}

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

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for Slider */
@media (max-width: 768px) {
    .hero-slider-container .hero-slide-item .wp-block-cover {
        min-height: 500px;
    }
    .hero-slider-container .slide-content {
        margin: 0 auto;
        text-align: center;
    }
    .slick-prev { left: 15px; }
    .slick-next { right: 15px; }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .wp-block-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}