/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on anchor links */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdf6f0; /* Light creamy background */
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Parisienne', cursive; /* Elegant font for headings */
    color: #d16080; /* A warm pink/rose color */
    margin-bottom: 15px;
}

h1#logo {
    font-size: 2.5rem;
    color: #d16080;
    flex-grow: 1; /* Allow logo to take available space */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    padding-top: 20px;
    margin-bottom: 25px;
}

h3 {
    font-size: 2rem;
}
h4 { /* For cake item sub-titles */
    font-size: 1.6rem;
    color: #b74e6f;
}


p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}
.center-text {
    text-align: center;
}

a {
    text-decoration: none;
    color: #b74e6f;
}

a:hover {
    color: #d16080;
}

ul {
    list-style-position: inside;
    margin-bottom: 15px;
}
ul li {
    margin-bottom: 5px;
}

.cta-button {
    display: inline-block;
    background: #d16080;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: none;
}

.cta-button:hover {
    background: #b74e6f;
    color: #fff !important;
}
.cta-button.small-cta {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #f0e1d1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container.header-container { /* Target header container specifically */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if space is tight */
}


header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 15px;
}

header nav ul li a {
    font-weight: bold;
    font-size: 0.95rem;
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px; /* Space from nav */
    display: flex;
    align-items: center;
}

.language-switcher .lang-btn {
    color: #333;
    background-color: #f0f0f0;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
}

.language-switcher .lang-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.language-switcher .lang-btn.active {
    background-color: #d16080; /* Your theme pink */
    color: #fff;
    border-color: #d16080;
}


/* Hero Section */
#hero {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), /* Overlay remains */
        url('assets/SprinkleCake.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative; 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Parisienne', cursive;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #eee;
}

/* Content Sections */
.content-section {
    padding: 50px 20px;
    text-align: center; /* Default to center */
}
.content-section > p { /* Paragraphs directly under content-section */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto 30px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#about .about-image {
    max-width: 350px;
    float: none;
    margin: 20px auto 30px;
}
#about p {
    text-align: left; /* For the bio paragraphs */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


#custom-overview .section-image { /* Specific for custom overview */
    max-width: 500px;
}
#custom-overview ul, #custom-overview ol { /* Target lists in custom overview specifically */
    text-align: left;
    max-width: 700px;
    margin: 20px auto;
}
#custom-overview ol.process-list {
    list-style-type: decimal;
    padding-left: 40px; /* Indent numbers */
}
#custom-overview ol.process-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}


/* Cake Options Section */
#cake-options {
    background-color: #fff9f2;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    text-align: left;
}
.option-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.option-item h3 {
    margin-bottom: 20px;
    text-align: center;
}
.option-item ul li {
    font-size: 1.05rem;
}
.option-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
#cake-options h3 {
    margin-top: 40px;
    clear: both;
}
.simple-designs-gallery .cake-item h4 {
    text-align: center;
}
.simple-designs-gallery .cake-item p {
    text-align: center;
    font-size: 0.9em;
}


/* Cake Gallery (Used by #cakes and #cake-options for simple designs) */
.cake-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cake-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cake-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cake-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cake-item h3 {
    font-size: 1.8rem;
    color: #d16080;
}

.cake-item p {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}
.cake-item .price {
    font-weight: bold;
    color: #7a9a56;
    font-size: 1.1rem;
    margin-top: 10px;
}
.custom-design-prompt {
    background-color: #f0e1d1;
    border: 2px dashed #d16080;
}
.custom-design-prompt h3 {
    text-align: center;
}
.custom-design-prompt p {
    text-align: center;
}
.custom-design-prompt .cta-button {
    margin-top: auto;
    align-self: center;
}


/* Custom Order Form Styles */
.custom-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: left;
}

.custom-form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.custom-form legend {
    font-family: 'Parisienne', cursive;
    font-size: 1.8rem;
    color: #d16080;
    padding: 0 10px;
    font-weight: normal;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
}
.form-group label.checkbox-label {
    display: inline-block;
    font-weight: normal;
    margin-left: 5px;
    vertical-align: middle;
}


.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d16080;
    box-shadow: 0 0 0 2px rgba(209, 96, 128, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
}

.form-group .cta-button {
    width: auto;
    cursor: pointer;
}
.form-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
    text-align: center;
}


/* Contact Section */
#contact .contact-info {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#contact .contact-info p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}
footer p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    header #logo {
        font-size: 2rem;
    }
    header nav ul li {
        margin-left: 10px;
    }
    header nav ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .container.header-container {
        flex-direction: column;
    }
    #logo {
        margin-bottom: 10px;
        font-size: 2.2rem;
    }
    header nav {
        margin-bottom: 10px;
        text-align: center; /* Center nav items */
    }
    header nav ul li {
        display: block;
        text-align: center;
        margin: 10px 0;
        margin-left: 0; /* Reset margin-left for stacked items */
    }
    header nav ul li a {
        font-size: 1rem;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }


    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    #hero {
        height: 60vh;
    }

    .cake-gallery {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }
    #about .about-image {
        float: none;
        margin: 20px auto 30px;
    }
     #about p {
        text-align: center; /* Center bio on mobile if desired, or keep left */
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .option-item {
        text-align: center;
    }
    .option-item ul {
        text-align: left;
        display: inline-block;
    }
    .custom-form {
        padding: 20px;
    }
    .custom-form legend {
        font-size: 1.6rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}