/*
Theme Name: BD Directory
Theme URI: https://www.facebook.com/kaysarulbd
Author: Kausar
Author URI: https://wa.me/+8801516514216
Description: A modern, responsive WordPress theme for BD Directory
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bd-directory
Tags: business, directory, responsive, modern, bootstrap
*/

/* ==================================================
   RESET & BASE STYLES
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================================================
   LAYOUT & CONTAINERS
   ================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* ==================================================
   HEADER STYLES
   ================================================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Custom Logo Styles */
.bd-custom-logo {
    display: inline-block;
    text-decoration: none;
}

.bd-custom-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.bd-custom-logo .logo-link:hover {
    opacity: 0.8;
}

.bd-custom-logo .logo-image {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.bd-custom-logo .logo-link:hover .logo-image {
    transform: scale(1.05);
}

.bd-custom-logo .logo-text {
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.bd-custom-logo .logo-link:hover .logo-text {
    opacity: 0.8;
}

/* Position adjustments */
.bd-custom-logo[data-position="center"] {
    text-align: center;
}

.bd-custom-logo[data-position="center"] .logo-link {
    justify-content: center;
    flex-direction: column;
}

.bd-custom-logo[data-position="center"] .logo-text {
    margin-left: 0;
    margin-top: 5px;
}

.bd-custom-logo[data-position="right"] {
    text-align: right;
}

.bd-custom-logo[data-position="right"] .logo-link {
    justify-content: flex-end;
}

/* Site branding container */
.site-branding {
    flex-shrink: 0;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

/* ==================================================
   HERO SECTION
   ================================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(155, 89, 182, 0.8)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ==================================================
   CARDS & LAYOUTS
   ================================================== */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating i {
    color: #ffc107;
    margin-right: 2px;
}

.address {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* ==================================================
   FORMS & INPUTS
   ================================================== */
.form-select, .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

/* ==================================================
   BREADCRUMBS
   ================================================== */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-top: 100px;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #3498db;
}

.breadcrumb-item.active {
    color: #2c3e50;
}

/* ==================================================
   DIRECTORY SPECIFIC STYLES
   ================================================== */
.directory-card {
    position: relative;
    margin-bottom: 2rem;
}

.directory-card .card-img-top {
    height: 250px;
}

.directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.directory-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.directory-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border-color: #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: white;
}

/* ==================================================
   WORK HOURS DISPLAY
   ================================================== */
.work-hours {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.work-hours h5 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.work-hours p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #4a5568;
}

/* ==================================================
   CONTACT INFO
   ================================================== */
.contact-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.contact-info h5 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

/* ==================================================
   ATTRIBUTES DISPLAY
   ================================================== */
.attributes-section {
    margin: 2rem 0;
}

.attributes-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.attributes-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.attributes-list h5 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.attributes-list ul {
    list-style: none;
    padding: 0;
}

.attributes-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.attributes-list li i {
    width: 20px;
    margin-right: 0.5rem;
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p, .footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-logo h3 {
    margin: 0;
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0 0 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-section {
        height: 600px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-section {
        height: 500px;
    }
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: #ffffff; }
.text-muted { color: #6c757d; }

.row-gap-4 { row-gap: 1.5rem; }
.col-gap-4 { column-gap: 1.5rem; }

/* ==================================================
   ANIMATIONS
   ================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================================================
   LOADING STATES
   ================================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}