/* Global styles for Bean Merchant */

/* Custom Properties */
:root {
    --primary-color: #2c1810;
    --secondary-color: #d4a574;
    --accent-color: #8b4513;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f6f3;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

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

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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-bottom: 1rem;
}

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

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

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8,
.col-12 {
    padding: 0 15px;
}

.col-md-3 { flex: 0 0 25%; }
.col-md-4 { flex: 0 0 33.333333%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

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

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

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

.rounded-circle {
    border-radius: 50%;
}

.align-items-center {
    align-items: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c19660;
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Section spacing */
section {
    padding: 60px 0;
}

/* Hide Elementor default styles on custom pages */
.template-homepage-no-elementor .elementor,
.template-about-template .elementor,
.template-contact-template .elementor,
.template-coffee-tools-template .elementor,
.template-machines-template .elementor,
.template-gifts-template .elementor {
    display: none !important;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    section {
        padding: 40px 0;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}