/* Homebakers Inc Custom Styles */

:root {
    --primary-color: #37aca2;
    --secondary-color: #6c757d;
    --success-color: #37aca2;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* Global Styles */
body {
    font-family: "Montserrat", 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--success-color) 0%, #4cc3b7 100%);
    background-attachment: fixed;
}

.hero-section.bg-gradient {
    background: #37aca2;
    background: linear-gradient(135deg, #37aca2 0%, #4cc3b7 100%);
    background-attachment: fixed;
    position: relative;
}

.hero-section.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero-section .col-lg-6:first-child {
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Navigation */
.navbar,
.navbar.bg-success,
.navbar.navbar-expand-lg {
    background-color: #37aca2 !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 0.75rem 0.75rem 1rem !important;
    transition: color 0.3s ease;
    color: white !important;
    opacity: 1 !important;
}

.navbar-nav .nav-link:hover {
    color: #dbcc9f !important;
}

.navbar-nav .nav-link.active {
    color: #dbcc9f !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

/* Full Width Hero Section */
.hero-section-full {
    min-height: 100vh;
    background-image: url('/images/chocolate-cake.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    animation: heroImageTransition 15s ease-in-out infinite;
}

/* Hero Image Transition Animation */
@keyframes heroImageTransition {
    0% {
        background-image: url('/images/chocolate-cake.jpg');
    }
    25% {
        background-image: url('/images/mango-cake.jpg');
    }
    50% {
        background-image: url('/images/coffee-breakfast.jpg');
    }
    75% {
        background-image: url('/images/chocolate-cake.jpg');
    }
    100% {
        background-image: url('/images/chocolate-cake.jpg');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-section-full .container {
    position: relative;
    z-index: 2;
}

.hero-section-full h1 {
    color: white !important;
    text-shadow: 2px 4px 4px rgba(0,0,0,0.8);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Grand Hotel", cursive;
}

.text-align-justify {
    text-align: justify !important;
}

.hero-section-full p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-section-full .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section-full .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    position: relative;
    z-index: 2;
}

.hero-section .text-white {
    color: white !important;
}

.hero-section h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .display-4 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Debug styles to ensure visibility */
.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section .row {
    position: relative;
    z-index: 10;
}

.hero-section .col-lg-6 {
    position: relative;
    z-index: 10;
}

/* Force text visibility */
.hero-section h1,
.hero-section .display-4 {
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.hero-section p,
.hero-section .lead {
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.hero-section .btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-success {
    background: #e4aa50;
    border-color: #e4aa50;
}

.btn-success:hover {
    background:rgb(242, 181, 89);
    border-color: #e4aa50;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--success-color);
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

/* Icons */
.fa-3x {
    color: var(--success-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        min-height: auto !important;
        height: auto !important;
    }
    
    .navbar-collapse {
        max-height: none !important;
        position: relative !important;
        background-color: transparent !important;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    .main-content {
        margin-top: 58px !important;
    }
    
    .hero-section {
        min-height: 50vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section-full {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-section-full h1 {
        font-size: 3.5rem;
    }
    
    .hero-section-full p {
        font-size: 1.2rem;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem !important;
        font-size: 1rem !important;
    }
    
    .navbar-toggler .fa-times {
        font-size: 1.2rem;
        color: white;
        display: block;
        width: 100%;
        height: 100%;
        line-height: 1;
    }
    
    .navbar-toggler {
        border: none !important;
        outline: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .main-content {
        margin-top: 58px !important;
    }
    
    .hero-section-full {
        min-height: 70vh;
    }
    
    .hero-section-full h1 {
        font-size: 3.5rem;
    }
    
    .hero-section-full p {
        font-size: 1rem;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Custom Utilities */
.text-success {
    color: var(--success-color) !important;
}

.bg-success {
    background-color: #37aca2 !important;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(to bottom, #37aca2, #333333) !important;
}

footer a:hover {
    color: #dbcc9f !important;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(55, 172, 162, 0.95) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--success-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Contact Form */
.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-bg);
}

/* Service Cards */
.service-card {
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--success-color);
    z-index: -1;
}

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* Toast Notifications */
.toast-notification {
    animation: slideInRight 0.3s ease-out;
    font-family: "Montserrat", 'Segoe UI', Tahoma, sans-serif;
}

.toast-success {
    background-color: #ff6b35 !important;
}

.toast-error {
    background-color: #dc3545 !important;
}

.toast-close:hover {
    opacity: 1 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile toast responsiveness */
@media (max-width: 576px) {
    #toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    
    .toast-notification {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #37aca2;
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-family: "Montserrat", 'Segoe UI', Tahoma, sans-serif;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #37aca2;
    font-family: "Montserrat", 'Segoe UI', Tahoma, sans-serif;
}

/* Phone number input validation */
#phone:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#phone:valid {
    border-color: #37aca2;
}

#phone:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#phone:focus:valid {
    border-color: #37aca2;
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

/* Email input validation */
#email:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#email:valid {
    border-color: #37aca2;
}

#email:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#email:focus:valid {
    border-color: #37aca2;
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

/* Name input validation */
#name:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#name:valid {
    border-color: #37aca2;
}

#name:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#name:focus:valid {
    border-color: #37aca2;
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

/* Message textarea validation */
#message:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#message:valid {
    border-color: #37aca2;
}

#message:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#message:focus:valid {
    border-color: #37aca2;
    box-shadow: 0 0 0 0.2rem rgba(55, 172, 162, 0.25);
}

/* Card anchor link colors - default white */
.card a {
    color: white !important;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #f8f9fa !important;
}

/* Contact section link colors - override to orange */
.card .text-muted a {
    color: #ff6b35 !important;
}

.card .text-muted a:hover {
    color: #e55a2b !important;
}

/* Social Media Icons - Green */
.card .social-icon-green,
.social-icon-green {
    color: #37aca2 !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card .social-icon-green:hover,
.social-icon-green:hover {
    color: #2e8b7d !important;
    transform: scale(1.1);
}
