/* ============================================
   Custom Styles for Wood City Trading
   ============================================ */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #1f2937;
    --accent-color: #4b5563;
    --light-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --hover-navy: #1e40af;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--secondary-color) !important;
    white-space: nowrap;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-navy);
    border-color: var(--hover-navy);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    min-height: auto;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-section .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero-section h1 .text-primary {
    color: var(--primary-color) !important;
}

.hero-image {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Stats Section */
.stat-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .text-primary {
    color: var(--primary-color) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15) !important;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-card ul {
    font-size: 0.85rem;
    padding-left: 0;
    margin-bottom: 1rem;
}

.product-card ul li {
    margin-bottom: 0.35rem;
}

/* Section Headers */
.display-4 {
    color: var(--secondary-color) !important;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.lead {
    color: var(--text-light) !important;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

h2, h3, h4, h5 {
    word-wrap: break-word;
}

/* Contact Section */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-navy));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem;
    font-size: 1rem;
}

textarea.form-control {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
}

footer h5, 
footer h6, 
footer p, 
footer li {
    color: #ffffff !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-gray) !important;
}

footer .text-muted,
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Scroll to Top Button */
#scrollTop {
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

#scrollTop:hover {
    background-color: var(--hover-navy) !important;
    border-color: var(--hover-navy) !important;
}

/* Feature not implemented tooltip */
.feature-tooltip {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    z-index: 9999;
    display: none;
    animation: slideInUp 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.feature-tooltip.show {
    display: block;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feature-tooltip .close-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.feature-tooltip .close-tooltip:hover {
    color: #333;
}

/* Additional Hover Effects */
.card:hover {
    border-color: var(--primary-color) !important;
}

.btn:active {
    transform: scale(0.98);
}

/* img logo */
.img-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .product-img {
        height: 250px;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199px) {
    .navbar-brand {
        font-size: 1.15rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hero-section .row {
        min-height: auto !important;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .product-img {
        height: 220px;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
    
    .product-img {
        height: 200px;
    }
    
    .product-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: 10px;
        right: 10px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    footer {
        text-align: center;
        padding: 2.5rem 0 !important;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    .feature-tooltip {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: calc(100% - 30px);
        padding: 1.25rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .img-logo {
        height: 32px;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .product-img {
        height: 180px;
    }
    
    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .form-control {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
    
    .card-body h5 {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.875rem;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Very small devices (less than 375px) */
@media (max-width: 374px) {
    .img-logo {
        height: 28px;
        margin-right: 6px;
    }
    
    .navbar-brand {
        font-size: 0.85rem;
    }
    
    .product-img {
        height: 160px;
    }
    
    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
}
/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2) !important;
}

.contact-icon-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-navy));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-icon-email {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.contact-icon-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-icon-location {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.contact-card h4 {
    color: var(--text-dark);
}

.contact-card .text-muted {
    font-size: 1rem;
}

.contact-card .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .contact-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .contact-card h4 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        margin-bottom: 1.5rem;
    }
}