/* ===================================
   RareStationery - Main CSS
   Modern Design with Conservative Typography
   Bootstrap 5 Compatible - No Overrides
   =================================== */

/* CSS Variables for Color Palette */
:root {
    /* Primary Colors - Pastel High Contrast */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Light Shades */
    --primary-light: #a5b4fc;
    --secondary-light: #c4b5fd;
    --accent-light: #f9a8d4;
    --success-light: #6ee7b7;
    --warning-light: #fbbf24;
    
    /* Dark Shades */
    --primary-dark: #4338ca;
    --secondary-dark: #7c3aed;
    --accent-dark: #db2777;
    --success-dark: #059669;
    --warning-dark: #d97706;
    
    /* Neutral Colors */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* Conservative Typography */
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-large: 1.125rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 80px 0;
    --element-spacing: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Conservative Typography - No Large Sizes */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

h1, .display-4 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

h2, .h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
}

.lead {
    font-size: var(--font-size-large);
    font-weight: 400;
}

p {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
}

/* Header Styles */
#header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

#header .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

#header .navbar-nav .nav-link:hover,
#header .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
    border-radius: 50%;
    opacity: 0.1;
}

.shape-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent-light), var(--warning-light));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Team Members */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 1rem 0;
}

.breadcrumb-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

/* Gallery */
#gallery .img-fluid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

#gallery .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Footer */
#footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

#footer a {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--primary-light);
}

/* Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    #gallery .img-fluid:hover {
        transform: none;
    }
}

/* Section Spacing */
section {
    padding: var(--section-padding);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.rounded-3 {
    border-radius: 12px;
}

/* Animation Classes - Simple and Conservative */
.sal-animate {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Ensure no Bootstrap overrides */
.container,
.row,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    /* Using Bootstrap 5 grid system as-is without modifications */
} 

.hero-section h1 {
    padding-top: 250px;
}


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.instagram-link {
    background: #e4405f;
    border: 2px solid #e4405f;
}

.instagram-link:hover {
    background: #d62976;
    border-color: #d62976;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
