/* Custom Styles for Bakes and Cakes Child Theme */

/* Site Title */
.site-branding .site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #f6a8c6;
}

/* Sweet Creations and Testimonials Section Titles */
.featured .header .main-title,
.testimonial .header .main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Keep Testimonials title color same as Services title */
.testimonial .header .main-title {
    color: #333;
}

/* Hero Section */
.hero-section {
    width: 100%;
    position: relative;
}

.hero-container {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--hero-heading-color, #ffffff);
}

.hero-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--hero-text-color, #ffffff);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: transparent;
    color: var(--hero-cta1-text-color, #d4a74b);
    border: 2px solid var(--hero-cta1-border-color, #f6a8c6);
}

.btn-primary:hover {
    background-color: var(--hero-cta1-hover-bg-color, #f6a8c6);
    color: var(--hero-cta1-text-color, #d4a74b);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--hero-cta2-text-color, #f6a8c6);
    border: 2px solid var(--hero-cta2-border-color, #f6a8c6);
}

.btn-secondary:hover {
    background-color: var(--hero-cta2-hover-bg-color, #ffffff);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-container {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.services-header {
    margin-bottom: 50px;
}

.services-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 15px;
}

.services-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.service-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Testimonials Section */
.testimonials-container {
    padding: 40px 20px; /* Reduced padding by half for top and bottom */
    background-color: #f8f8f8;
    text-align: center;
}

.testimonials-header {
    margin-bottom: 50px;
}

.testimonials-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 15px;
}

.testimonials-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 30px;
}

.testimonial-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: #d4a74b;
    opacity: 0.2;
}

.testimonial-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-container {
        padding: 60px 15px;
    }
    
    section.testimonial {
        padding: 40px 0 !important; /* Increase top padding above "What Our Customers Say" for mobile */
    }
    
    .testimonials-container {
        padding: 50px 15px 30px; /* Reduced padding by half for top and bottom */
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .services-title,
    .testimonials-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Sweet Creations Section */
section.featured {
    padding: 40px 0 !important; /* Add top and bottom padding to the section */
}

.featured .featured-slider {
    padding: 0 !important; /* Reset padding on the slider itself */
    margin: 0;
    position: relative;
    box-sizing: border-box; /* Ensure container respects width constraints */
}

.featured-slider .img-holder {
    overflow: hidden;
    margin: 0 0 20px;
}

.featured-slider .img-holder img {
    border-radius: 50%;
    border: 10px solid #fff;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    vertical-align: top;
}

.featured-slider .img-holder .svg-holder {
    border-radius: 50%;
    border: 10px solid #fff;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-slider .text-holder {
    text-align: center;
}

.featured-slider .text-holder .name {
    display: block;
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 15px;
    color: #555;
}

.featured-slider li {
    padding: 0 15px;
}

.featured-slider .owl-nav {
    display: none;
}

.featured-slider .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.featured-slider .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border: 1px solid #999;
    background: none;
    border-radius: 50%;
    -webkit-border-radius: 100px;
    display: inline-block;
    margin: 5px;
}

.featured-slider .owl-dots .owl-dot.active {
    background: #999;
}

/* Show navigation arrows on mobile and add swipe indicator */
@media (max-width: 768px) {
    .featured-slider .owl-nav {
        display: block;
    }
    
    /* Override parent theme styles for navigation arrows */
    .featured-slider .owl-nav .owl-prev,
    .featured-slider .owl-nav .owl-next,
    .featured-slider.owl-carousel .owl-nav [class*="owl-"] {
        position: absolute;
        top: 45%; /* Center arrows vertically */
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 40px; /* Original size */
        height: 40px; /* Original size */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 10; /* Ensure arrows are above carousel items */
        margin: 0 !important; /* Override parent theme margin */
        opacity: 1 !important; /* Override parent theme opacity */
        text-indent: 0 !important; /* Override parent theme text-indent */
        /* Remove previous/next text */
        font-size: 0;
    }
    
    .featured-slider .owl-nav .owl-prev,
    .featured-slider.owl-carousel .owl-nav .owl-prev {
        left: 0px !important; /* Position inside container with some margin */
        right: auto !important; /* Override parent theme right positioning */
    }
    
    .featured-slider .owl-nav .owl-next,
    .featured-slider.owl-carousel .owl-nav .owl-next {
        right: 0px !important; /* Position inside container with some margin */
        left: auto !important; /* Override parent theme left positioning */
    }
    
    .featured-slider .owl-nav .owl-prev:hover,
    .featured-slider .owl-nav .owl-next:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Use SVG background images like the parent theme */
    .featured-slider .owl-nav .owl-prev:before,
    .featured-slider .owl-nav .owl-next:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        text-indent: 0;
    }
    
    .featured-slider .owl-nav .owl-prev:before {
        background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 192 512'%3E%3Cpath d='M4.2 247.5L151 99.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17L69.3 256l118.5 119.7c4.7 4.7 4.7 12.3 0 17L168 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 264.5c-4.7-4.7-4.7-12.3 0-17z'/%3E%3C/svg%3E") center center no-repeat;
        background-size: 16px; /* Smaller icon */
    }
    
    .featured-slider .owl-nav .owl-next:before {
        background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 192 512'%3E%3Cpath d='M187.8 264.5L41 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 392.7c-4.7-4.7-4.7-12.3 0-17L122.7 256 4.2 136.3c-4.7-4.7-4.7-12.3 0-17L24 99.5c4.7-4.7 12.3-4.7 17 0l146.8 148c4.7 4.7 4.7 12.3 0 17z'/%3E%3C/svg%3E") center center no-repeat;
        background-size: 16px; /* Smaller icon */
    }
    
    /* Swipe indicator for mobile */
    .featured-slider:after {
        content: '← Swipe →';
        position: absolute;
        bottom: -30px; /* Move further down */
        left: 50%;
        transform: translateX(-50%);
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        color: #666;
        background: rgba(255, 255, 255, 0.8);
        padding: 6px 12px; /* Smaller padding */
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        animation: swipe-indicator 2s ease-in-out infinite;
    }
    
    @keyframes swipe-indicator {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
}

/* Larger subheadings for product and testimonial sections */
.header p:not(.testimonials-subtitle) {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Sweet Creations item text color */
.featured-slider .text-holder .name {
    color: #fff;
}

/* Bold hero text */
.hero-text-bold {
    font-weight: 600;
}

/* HD's Corner Menu Styles */
.menu-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

/* Responsive styles for menu container */
@media (max-width: 768px) {
    .menu-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 1rem;
    }
}

.menu-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #f0d9d9;
    padding-bottom: 2rem;
}

.custom-cakes-section {
    padding-top: 1rem;
}

.menu-section-title {
    color: #3971b7;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
}

.menu-section p {
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.price-note {
    color: #a64452;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: #7c6483;
    text-align: center;
    margin-top: 0.5rem;
}

.menu-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

.menu-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Responsive styles for menu images */
@media (max-width: 768px) {
    .menu-images img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .menu-images {
        gap: 0.5rem;
    }
    
    .menu-images img {
        width: 100px;
        height: 100px;
    }
}
