/* Custom styles for Landing Page Generator */

/* Color Scheme Override - Only use approved colors */
:root {
    --primary-color: #f47c00; /* Orange - Primary brand color */
    --accent-color: #de2b2b; /* Red - Accent color */
    --highlight-color: #f4c303; /* Yellow - Highlight color */
    --text-color: #000000; /* Black - Text color */
}

/* Override Bootstrap primary colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #d66a00 !important;
    border-color: #d66a00 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Accent color classes */
.bg-accent {
    background-color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.btn-accent:hover {
    background-color: #c02525 !important;
    border-color: #c02525 !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Highlight color classes */
.bg-highlight {
    background-color: var(--highlight-color) !important;
}

.btn-highlight {
    background-color: var(--highlight-color) !important;
    border-color: var(--highlight-color) !important;
    color: #000000 !important;
}

.btn-highlight:hover {
    background-color: #d4b003 !important;
    border-color: #d4b003 !important;
}

.text-highlight {
    color: var(--highlight-color) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

main {
    flex: 1;
}

.step {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

#pexelsResults img,
#selectedImages img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

#pexelsResults img:hover {
    transform: scale(1.05);
}

.selected-image {
    position: relative;
    margin-bottom: 1rem;
}

.selected-image .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #de2b2b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.hero-section {
    background-size: cover;
    background-position: center;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Loading spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Marketing Pages Styles */
.hero-section {
    background: #ffffff;
}

.hero-image-placeholder,
.about-image-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    margin-bottom: 1rem;
}

.industry-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pricing-card {
    border: 2px solid #e9ecef;
}

.process-step {
    margin-bottom: 1.5rem;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-1 { font-size: 2rem; }
    .display-2 { font-size: 1.75rem; }
    .display-3 { font-size: 1.5rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    .display-6 { font-size: 1.125rem; }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .lead { font-size: 1rem; }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        min-height: 44px; /* Adequate touch target */
    }
    
    .btn {
        min-height: 44px; /* Adequate touch target */
        padding: 0.5rem 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-image-placeholder,
    .about-image-placeholder {
        min-height: 150px;
        margin-top: 1.5rem;
        padding: 2rem !important;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem !important;
    }
    
    .pricing-card {
        padding: 1.5rem !important;
    }
    
    /* Navbar */
    .navbar-brand img {
        max-height: 40px;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Spacing */
    .mb-4 { margin-bottom: 1rem !important; }
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mt-4 { margin-top: 1rem !important; }
    .mt-5 { margin-top: 1.5rem !important; }
    
    /* Step padding */
    .step {
        padding: 1rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Feature icons */
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    /* Industry cards */
    .industry-card {
        padding: 1rem !important;
    }
    
    /* CTA buttons - stack vertically */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    
    /* Buttons */
    .btn-lg {
        font-size: 1.125rem;
        padding: 0.625rem 1.25rem;
        min-height: 44px;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .hero-image-placeholder,
    .about-image-placeholder {
        min-height: 200px;
        margin-top: 2rem;
    }
    
    /* Navbar */
    .navbar-brand img {
        max-height: 45px;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem !important;
    }
    
    .pricing-card {
        padding: 2rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2rem; }
    
    /* Hero Section */
    .hero-section {
        padding: 4rem 0 !important;
    }
    
    /* Navbar */
    .navbar-brand img {
        max-height: 50px;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Large devices (desktops, 992px and up) - Default styles apply */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Card hover effects for services */
.card.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Contact form styles */
#contactForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 124, 0, 0.25);
}

/* Accordion styles for FAQ */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Navbar active link */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* Navbar logo styling */
.navbar-brand img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    font-weight: 600;
    text-decoration: none;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* Navbar text colors for white background */
.navbar-light .navbar-brand {
    color: #000000;
}

.navbar-light .navbar-brand:hover {
    color: #000000;
}

.navbar-light .navbar-nav .nav-link {
    color: #000000;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #f47c00;
}

.navbar-light .navbar-toggler {
    border-color: #000000;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu styling for white navbar */
.navbar-light .dropdown-menu {
    border-color: #e9ecef;
}

.navbar-light .dropdown-item {
    color: #000000;
}

.navbar-light .dropdown-item:hover {
    background-color: #f47c00;
    color: #fff;
}

/* Mobile-specific improvements */
@media (max-width: 991.98px) {
    /* Better button spacing on mobile */
    .btn + .btn {
        margin-top: 0.5rem;
    }
    
    /* Improve form layout on mobile */
    .row.g-3 > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
    
    /* Better card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Improve dropdown menu on mobile */
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 1rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 0;
    }
    
    /* Better accordion on mobile */
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    /* Improve pricing card on mobile */
    .pricing-card .display-2 {
        font-size: 2.5rem;
    }
    
    /* Better gallery on mobile */
    .gallery img {
        margin-bottom: 1rem;
    }
    
    /* Improve contact info cards */
    .d-flex.align-items-start {
        flex-wrap: wrap;
    }
    
    /* Better process steps on mobile */
    .process-step .bg-primary {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Touch-friendly improvements for all mobile */
@media (max-width: 991.98px) {
    /* Ensure adequate touch targets */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better link spacing */
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Improve social icons */
    .d-flex.gap-3 a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


