
/* =================================
   Rayne or Sunshine Bakery
   Designed by Everward Digital
================================= */

/* Approved Brand Colors */

:root {
    --cream: #FFF8EB;
    --sunshine: #F4C34E;
    --gold: #BD8735;
    --olive: #414B28;
    --black: #17130E;
}

/* General Styling */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--black);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.2;
    color: var(--olive);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 18px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header and Branding */

.site-header {
    background-color: var(--cream);
    text-align: center;
    padding: 35px 20px;
    border-top: 6px solid var(--gold);
}

.brand h1 {
    font-size: 3.5rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 5px;
}

.brand-subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 8px;
    font-weight: 600;
}

.tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    margin: 12px 0 0;
}

/* Navigation */

.navigation {
    background-color: var(--olive);
    padding: 16px 20px;
}

.navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
}

.navigation a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.navigation .nav-order {
    background-color: var(--sunshine);
    color: var(--black);
    padding: 10px 20px;
    border-radius: 30px;
}

/* Hero Section */

.hero {
    background: radial-gradient(
        ellipse at center,
        rgba(244, 195, 78, 0.25),
        var(--cream) 75%
    );

    padding: 110px 25px;
    text-align: center;
    border-bottom: 1px solid var(--gold);
}

.hero-content {
    max-width: 850px;
    margin: auto;
}

.eyebrow {
    display: block;
    color: var(--olive);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 25px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Buttons */

.button {
    display: inline-block;
    background-color: var(--sunshine);
    color: var(--black);
    border: 2px solid var(--sunshine);
    border-radius: 30px;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s,
                color 0.2s,
                border-color 0.2s;
}

.button:hover {
    background-color: var(--olive);
    border-color: var(--olive);
    color: var(--cream);
}

.button-outline {
    background-color: transparent;
    border: 2px solid var(--olive);
    color: var(--olive);
}

.text-link {
    color: var(--olive);
    font-weight: 600;
    text-underline-offset: 5px;
}

/* General Sections */

.section {
    padding: 75px 25px;
    text-align: center;
}

.section > p {
    max-width: 750px;
    margin: 0 auto 20px;
}

/* Welcome Section */

.welcome {
    background-color: var(--cream);
    border-bottom: 1px solid var(--gold);
}

.welcome h2 {
    font-style: italic;
}

/* Offerings Section */

.offerings {
    background-color: rgba(244, 195, 78, 0.15);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}

.offer-card {
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 40px 25px;
    box-shadow: 0 4px 15px rgba(23, 19, 14, 0.05);
}

.offer-card h3 {
    font-style: italic;
}

.offer-card p {
    margin-bottom: 0;
}

/* Gallery Preview */

.gallery-preview {
    background-color: var(--cream);
}

/* Order Banner */

.order-banner {
    background-color: var(--sunshine);
}

.order-banner .button {
    background-color: var(--olive);
    border-color: var(--olive);
    color: var(--cream);
}

.order-banner .button:hover {
    background-color: var(--black);
    border-color: var(--black);
}

/* Footer */

.site-footer {
    background-color: var(--olive);
    color: var(--cream);
    text-align: center;
    padding: 45px 20px 25px;
}

.site-footer h2 {
    color: var(--cream);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 5px;
}

.site-footer .tagline {
    color: var(--sunshine);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 25px 0;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 248, 235, 0.3);
    padding-top: 20px;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Accessibility */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 5px;
}

.navigation a:focus-visible,
.site-footer a:focus-visible {
    outline-color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* Tablet Layout */

@media (max-width: 768px) {

    .brand h1 {
        font-size: 2.8rem;
    }

    .navigation ul {
        gap: 18px;
    }

    .hero {
        padding: 80px 20px;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 55px 20px;
    }
}

/* Mobile Layout */

@media (max-width: 480px) {

    .brand h1 {
        font-size: 2.4rem;
    }

    .brand-subtitle {
        letter-spacing: 5px;
    }

    .navigation ul {
        gap: 14px;
    }

    .navigation a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 65px 20px;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .button {
        width: 100%;
        max-width: 280px;
    }

    .section {
        padding: 45px 20px;
    }
}
/* Bakery Logo */

.brand-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 15px;
}

@media (max-width: 768px) {
    .brand-logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 120px;
    }
}

/* =================================
   About Page
================================= */

.page-hero {
    padding: 75px 25px;
}

.about-story {
    background-color: var(--cream);
}

.story-content {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.9;
}

.story-content p {
    margin-bottom: 25px;
}

/* Family Statement */

.family-quote {
    background-color: var(--olive);
    color: var(--cream);
    border-top: 5px solid var(--gold);
    border-bottom: 5px solid var(--gold);
}

.family-quote blockquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--cream);
}

/* About Page Mobile Layout */

@media (max-width: 480px) {

    .page-hero {
        padding: 50px 20px;
    }

    .story-content {
        font-size: 1rem;
    }
}

/* =================================
   Menu Page
================================= */

.menu-section {
    background-color: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.menu-card {
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 4px 15px rgba(23, 19, 14, 0.05);
}

.menu-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: var(--sunshine);
    color: var(--olive);
    border-radius: 50%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.menu-card h3 {
    font-style: italic;
}

.menu-card p:last-child {
    margin-bottom: 0;
}

/* Special Occasions */

.occasions-section {
    background-color: var(--olive);
    color: var(--cream);
}

.occasions-section h2 {
    color: var(--cream);
}

.occasions-section .eyebrow {
    color: var(--sunshine);
}

.occasion-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto;
}

.occasion-list span {
    border: 1px solid var(--sunshine);
    padding: 10px 22px;
    border-radius: 30px;
    color: var(--cream);
}

/* Pricing Information */

.pricing-section {
    background-color: var(--cream);
}

.pricing-section .button {
    margin-top: 15px;
}

/* Dietary Information */

.dietary-section {
    background-color: rgba(244, 195, 78, 0.15);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Responsive Menu Layout */

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        padding: 30px 20px;
    }

    .occasion-list {
        gap: 10px;
    }

    .occasion-list span {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* =================================
   Gallery Page
================================= */

.gallery-section {
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

/* Temporary Photo Placeholders */

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background-color: rgba(244, 195, 78, 0.15);
    border: 2px dashed var(--gold);
    border-radius: 16px;
    color: var(--olive);
}

.gallery-placeholder span {
    font-size: 3rem;
    color: var(--gold);
}

.gallery-placeholder p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Actual Gallery Photos */

.gallery-item {
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(23, 19, 14, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-item figcaption {
    position: relative;
    background-color: var(--cream);
    color: var(--olive);
    padding: 15px;
    font-weight: 600;
}

/* Social Media Section */

.social-section {
    background-color: rgba(244, 195, 78, 0.15);
    border-top: 1px solid var(--gold);
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive Gallery */

@media (max-width: 768px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-buttons .button {
        width: 100%;
        max-width: 280px;
    }
}

/* =================================
   Order Inquiry Page
================================= */

.order-section {
    background-color: var(--cream);
}

.order-form {
    max-width: 850px;
    margin: 40px auto 0;
    padding: 35px;
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(23, 19, 14, 0.06);
}

.order-form fieldset {
    border: none;
    margin-bottom: 35px;
    min-width: 0;
}

.order-form legend {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--olive);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gold);
    width: 100%;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--olive);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--olive);
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--black);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

/* Form Notice */

.form-notice {
    background-color: rgba(244, 195, 78, 0.2);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--olive);
}

.checkbox-label input:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

.order-form button {
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.form-help {
    font-size: 0.85rem;
    color: var(--olive);
    text-align: center;
    margin: 15px 0 0;
}

#form-status {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--olive);
    text-align: center;
    margin-top: 15px;
}

/* Responsive Form */

@media (max-width: 768px) {

    .order-form {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .order-form {
        padding: 18px;
    }

    .order-form legend {
        font-size: 1.7rem;
    }

    .form-notice {
        padding: 15px;
    }
}

/* =================================
   Frequently Asked Questions
================================= */

.faq-section {
    background-color: var(--cream);
}

.faq-container {
    max-width: 850px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-category {
    font-size: 2rem;
    font-style: italic;
    color: var(--olive);
    margin: 35px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gold);
}

.faq-item {
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Expandable Questions */

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    color: var(--olive);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 500;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background-color: rgba(244, 195, 78, 0.2);
}

.faq-item[open] summary {
    background-color: var(--sunshine);
    border-bottom: 1px solid var(--gold);
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--olive);
    outline-offset: -5px;
}

/* Answers */

.faq-answer {
    padding: 20px;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Mobile Layout */

@media (max-width: 480px) {

    .faq-category {
        font-size: 1.7rem;
    }

    .faq-item summary {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 16px;
        font-size: 0.95rem;
    }
}

/* =================================
   Final Design Enhancements
================================= */

/* Decorative Header Details */

.site-header .brand::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    background-color: var(--gold);
    margin: 20px auto 0;
    border-radius: 5px;
}

/* Decorative Section Headings */

.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin: 18px auto 25px;
}

/* Soft Sunshine Background */

.hero {
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(244, 195, 78, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(189, 135, 53, 0.12),
            transparent 35%
        ),
        var(--cream);
}

/* Decorative Card Details */

.offer-card,
.menu-card {
    border-top: 4px solid var(--gold);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

@media (hover: hover) {
    .offer-card:hover,
    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(23, 19, 14, 0.1);
    }
}

/* Enhanced Buttons */

.button {
    box-shadow: 0 3px 8px rgba(23, 19, 14, 0.08);
}

/* Decorative Order Banner */

.order-banner {
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

/* Footer Details */

.site-footer {
    border-top: 5px solid var(--gold);
}

/* Text Selection */

::selection {
    background-color: var(--sunshine);
    color: var(--black);
}

/* Reduced Motion Accessibility */

@media (prefers-reduced-motion: reduce) {
    .offer-card:hover,
    .menu-card:hover {
        transform: none;
    }
}

/* =================================
   Floral Decorations
================================= */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 280px;
    height: 150px;
    background-image: url("images/floral.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    left: 0;
}

.hero::after {
    right: 0;
    transform: scaleX(-1);
}

/* Smaller decorations on tablets */

@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        width: 150px;
        height: 90px;
        opacity: 0.4;
    }
}

/* Hide decorations on smaller phones */

@media (max-width: 480px) {
    .hero::before,
    .hero::after {
        display: none;
    }
}
/* Website Designer Credit */

.designer-credit {
    font-size: 0.8rem;
    margin: 12px 0 0;
    color: var(--cream);
}

.designer-credit a {
    color: var(--sunshine);
    text-decoration: none;
    font-weight: 500;
}

.designer-credit a:hover {
    text-decoration: underline;
}

/* =================================
   Delicate Floral Details
================================= */

/* Floral Section Dividers */

.section h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 40px;
    background-color: transparent;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 10px auto 20px;
}

/* Floral Header Accent */

.site-header .brand::after {
    width: 180px;
    height: 45px;
    background-color: transparent;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 12px auto 0;
}

/* Small Floral Card Decorations */

.offer-card::before,
.menu-card::before {
    content: "";
    display: block;
    width: 90px;
    height: 28px;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto 15px;
}

/* Family Quote Decorations */

.family-quote::before,
.family-quote::after {
    content: "";
    display: block;
    width: 180px;
    height: 50px;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin: 20px auto;
}

/* Dividers on Dark Backgrounds */

.occasions-section h2::after {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Footer Decoration */

.site-footer::before {
    content: "";
    display: block;
    width: 180px;
    height: 45px;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin: 0 auto 15px;
}

/* Mobile Adjustments */

@media (max-width: 480px) {

    .section h2::after {
        width: 120px;
        height: 32px;
    }

    .site-header .brand::after {
        width: 140px;
        height: 35px;
    }

    .offer-card::before,
    .menu-card::before {
        width: 75px;
        height: 24px;
    }
}

/* =================================
   Refined Homepage Layout
================================= */

.home-hero {
    padding: 85px 30px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.home-hero .hero-content {
    text-align: left;
    margin: 0;
}

.home-hero h2 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.home-hero p {
    margin: 0 0 30px;
}

.home-hero .hero-buttons {
    justify-content: flex-start;
}

/* Featured Image Area */

.hero-visual {
    position: relative;
    padding: 12px;
    border: 1px solid var(--gold);
    border-radius: 160px 160px 20px 20px;
}

.hero-visual > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 150px 150px 14px 14px;
}

/* Temporary Image Placeholder */

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background-color: rgba(244, 195, 78, 0.15);
    border-radius: 150px 150px 14px 14px;
    padding: 30px;
}

.photo-placeholder img {
    width: 180px;
    margin-bottom: 15px;
}

.photo-placeholder p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--olive);
    margin: 0;
    text-align: center;
}

/* Tablet and Mobile Layout */

@media (max-width: 768px) {

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-hero {
        padding: 60px 25px;
    }

    .home-hero .hero-content {
        text-align: center;
    }

    .home-hero p {
        margin: 0 auto 25px;
    }

    .home-hero .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }
}

@media (max-width: 480px) {

    .home-hero {
        padding: 45px 20px;
    }

    .home-hero h2 {
        font-size: 2.7rem;
    }

    .hero-visual {
        max-width: 280px;
    }
}

/* =================================
   Refined Welcome Section
================================= */

.welcome {
    background-color: rgba(244, 195, 78, 0.12);
}

.welcome-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 65px;
    max-width: 1150px;
    margin: auto;
}

.welcome-content {
    text-align: left;
}

.welcome-content h2 {
    font-style: italic;
}

.welcome-content h2::after {
    margin: 15px 0 25px;
}

.welcome-content p {
    margin-bottom: 22px;
}

/* Welcome Photograph */

.welcome-visual {
    position: relative;
    padding: 10px;
    border: 1px solid var(--gold);
    border-radius: 20px 140px 20px 140px;
}

.welcome-visual > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px 130px 14px 130px;
}

/* Temporary Photograph Placeholder */

.welcome-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 25px;
    background-color: var(--cream);
    border-radius: 14px 130px 14px 130px;
}

.welcome-placeholder img {
    width: 150px;
    margin-bottom: 15px;
}

.welcome-placeholder p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--olive);
    margin: 0;
}

/* Tablet and Mobile Layout */

@media (max-width: 768px) {

    .welcome-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .welcome-content {
        text-align: center;
    }

    .welcome-content h2::after {
        margin: 15px auto 25px;
    }

    .welcome-visual {
        width: 100%;
        max-width: 450px;
        margin: auto;
    }

    .welcome-content {
        grid-row: 1;
    }
}

@media (max-width: 480px) {

    .welcome-visual {
        max-width: 300px;
    }

    .welcome-placeholder p {
        font-size: 1.5rem;
    }

    .welcome-placeholder img {
        width: 120px;
    }
}

/* =================================
   Homepage Featured Gallery
================================= */

.gallery-preview {
    background-color: var(--cream);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

.featured-item {
    padding: 8px;
    border: 1px solid var(--gold);
    border-radius: 120px 120px 15px 15px;
    overflow: hidden;
}

/* Actual Bakery Photographs */

.featured-item > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 112px 112px 10px 10px;
}

/* Temporary Floral Placeholders */

.featured-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background-color: rgba(244, 195, 78, 0.15);
    border-radius: 112px 112px 10px 10px;
    padding: 20px;
}

.featured-placeholder img {
    width: 120px;
    margin-bottom: 15px;
}

.featured-placeholder span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--olive);
    text-align: center;
}

/* Photo Captions */

.featured-item figcaption {
    padding: 15px 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--olive);
}

/* Tablet Layout */

@media (max-width: 768px) {

    .featured-grid {
        gap: 15px;
    }

    .featured-placeholder {
        padding: 15px;
    }

    .featured-placeholder span {
        font-size: 1.2rem;
    }
}

/* Mobile Layout */

@media (max-width: 480px) {

    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 25px;
    }

    .featured-placeholder span {
        font-size: 1.6rem;
    }
}

/* =================================
   Enhanced Navigation Bar
================================= */

.navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(23, 19, 14, 0.12);
    padding: 18px 20px;
}

.navigation ul {
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}

.navigation a {
    display: inline-block;
    position: relative;
    padding: 5px 2px;
    transition: color 0.2s ease;
}

/* Navigation Hover Effects */

.navigation a:not(.nav-order):hover {
    color: var(--sunshine);
    text-decoration: none;
}

/* Current Page Indicator */

.navigation a:not(.nav-order)[aria-current="page"] {
    color: var(--sunshine);
    text-decoration: none;
}

.navigation a:not(.nav-order)[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--sunshine);
    border-radius: 2px;
}

/* Request an Order Button */

.navigation .nav-order {
    background-color: var(--sunshine);
    color: var(--black);
    border: 1px solid var(--sunshine);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.2s,
                color 0.2s;
}

.navigation .nav-order:hover {
    background-color: var(--cream);
    color: var(--olive);
    text-decoration: none;
}

/* Prevent Sticky Navigation from Covering Anchors */

html {
    scroll-padding-top: 100px;
}

/* Tablet Navigation */

@media (max-width: 768px) {

    .navigation {
        padding: 14px 15px;
    }

    .navigation ul {
        gap: 18px;
    }

    .navigation .nav-order {
        padding: 8px 16px;
    }
}

/* Mobile Navigation */

@media (max-width: 480px) {

    .navigation {
        padding: 12px 10px;
    }

    .navigation ul {
        gap: 10px 18px;
    }

    .navigation a {
        font-size: 0.85rem;
    }

    .navigation li:last-child {
        flex-basis: 100%;
        text-align: center;
    }

    .navigation .nav-order {
        padding: 8px 20px;
    }

    html {
        scroll-padding-top: 150px;
    }
}

/* =================================
   Enhanced Bakery Gallery
================================= */

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 45px auto;
}

/* Elegant Photo Frames */

.gallery-item {
    padding: 8px;
    background-color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 100px 100px 16px 16px;
    box-shadow: 0 5px 18px rgba(23, 19, 14, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 92px 92px 10px 10px;
}

.gallery-item a {
    display: block;
}

/* Photo Captions */

.gallery-item figcaption {
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--olive);
    padding: 18px 10px;
}

.gallery-item figcaption::after {
    content: "";
    display: block;
    width: 80px;
    height: 25px;
    background-image: url("images/floral-divider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 8px auto 0;
}

/* Hover Effects */

@media (hover: hover) {
    .gallery-item:hover {
        box-shadow: 0 8px 25px rgba(23, 19, 14, 0.15);
    }

    .gallery-item img:hover {
        transform: none;
        opacity: 0.92;
    }
}

/* Temporary Gallery Placeholders */

.gallery-placeholder {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--gold);
    border-radius: 100px 100px 16px 16px;
    background-color: rgba(244, 195, 78, 0.12);
}

.gallery-placeholder span {
    font-size: 0;
    width: 130px;
    height: 45px;
    background-image: url("images/floral-divider.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-placeholder p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
}

/* Tablet Layout */

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile Layout */

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 25px;
    }
}

/* =================================
   Back to Top Button
================================= */

#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;

    background-color: var(--olive);
    color: var(--cream);

    border: 2px solid var(--gold);
    border-radius: 50%;

    font-size: 1.5rem;
    font-weight: 600;

    cursor: pointer;
    z-index: 1100;

    box-shadow: 0 4px 12px rgba(23, 19, 14, 0.2);

    transition: background-color 0.2s,
                color 0.2s;
}

#back-to-top[hidden] {
    display: none;
}

#back-to-top:hover {
    background-color: var(--sunshine);
    color: var(--black);
}

#back-to-top:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}

/* Mobile Button */

@media (max-width: 480px) {

    #back-to-top {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 15px;
        font-size: 1.3rem;
    }
}

/* =================================
   Final Mobile Improvements
================================= */

/* Prevent Content Overflow */

.hero-layout > *,
.welcome-layout > *,
.offer-grid > *,
.menu-grid > *,
.gallery-grid > *,
.featured-grid > * {
    min-width: 0;
}

p, h1, h2, h3 {
    overflow-wrap: break-word;
}

/* Touch-Friendly Buttons */

.button,
.navigation .nav-order {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tablet Improvements */

@media (max-width: 768px) {

    .section {
        padding: 50px 25px;
    }

    .hero-layout,
    .welcome-layout {
        gap: 30px;
    }

    .story-content {
        line-height: 1.8;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile Improvements */

@media (max-width: 480px) {

    .site-header {
        padding: 25px 15px;
    }

    .brand-logo {
        width: 110px;
    }

    .brand h1 {
        font-size: 2.3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section {
        padding: 40px 18px;
    }

    .hero h2,
    .home-hero h2 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .offer-card,
    .menu-card {
        padding: 25px 20px;
    }

    .button {
        padding: 12px 22px;
    }

    .navigation a {
        min-height: 36px;
    }

    .footer-links {
        gap: 20px;
    }

    .site-footer {
        padding-bottom: 75px;
    }

    .family-quote blockquote {
        font-size: 2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Extra Small Phones */

@media (max-width: 360px) {

    .brand h1 {
        font-size: 2rem;
    }

    .hero h2,
    .home-hero h2 {
        font-size: 2.2rem;
    }

    .navigation ul {
        gap: 8px 12px;
    }

    .hero-visual,
    .welcome-visual {
        max-width: 100%;
    }

    .order-form {
        padding: 15px;
    }

    .photo-placeholder,
    .welcome-placeholder {
        padding: 15px;
    }
}

/* =================================
   Order Inquiry Preview
================================= */

.inquiry-preview {
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(244, 195, 78, 0.15);
    border: 1px solid var(--gold);
    border-radius: 12px;
}

.inquiry-preview[hidden] {
    display: none;
}

.inquiry-preview h3 {
    text-align: center;
    font-style: italic;
}

.inquiry-preview label {
    display: block;
    color: var(--olive);
    font-weight: 600;
    margin-bottom: 10px;
}

.inquiry-preview textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--cream);
    color: var(--black);
    border: 1px solid var(--olive);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.inquiry-preview textarea:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

#copy-status {
    color: var(--olive);
    text-align: center;
    font-size: 0.9rem;
    margin: 15px 0 0;
}

@media (max-width: 480px) {
    .inquiry-preview {
        padding: 15px;
    }
}

/* =================================
   Final Accessibility Improvements
================================= */

/* Skip Navigation Link */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    transform: translateY(-200%);
    background-color: var(--olive);
    color: var(--cream);
    padding: 12px 20px;
    border: 2px solid var(--sunshine);
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--black);
    outline-offset: 3px;
}

/* Visible Keyboard Focus */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--olive);
    outline-offset: 4px;
}

/* Focus on Dark Backgrounds */

.navigation a:focus-visible,
.site-footer a:focus-visible,
.occasions-section a:focus-visible {
    outline-color: var(--sunshine);
}

/* Readable Form Placeholders */

input::placeholder,
textarea::placeholder {
    color: #595959;
    opacity: 1;
}

/* Clear Text Links */

.text-link,
.designer-credit a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Reduced Motion Preferences */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Sticky Navigation on Small Screens */

@media (max-width: 480px) {
    .navigation {
        position: static;
    }

    html {
        scroll-padding-top: 15px;
    }
}

/* =================================
   Homepage Bakery Photographs
================================= */

.hero-visual > img,
.welcome-visual > img,
.featured-item > img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main Featured Photograph */

.hero-visual > img {
    aspect-ratio: 4 / 5;
}

/* Welcome Photograph */

.welcome-visual > img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: var(--cream);
}

/* Featured Bakery Creations */

.featured-item {
    display: flex;
    flex-direction: column;
    background-color: var(--cream);
    box-shadow: 0 5px 15px rgba(23, 19, 14, 0.08);
}

.featured-item > img {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background-color: var(--cream);
}

.featured-item figcaption {
    flex-grow: 1;
    padding: 18px 10px;
    text-align: center;
}

.featured-item figcaption::after {
    content: "";
    display: block;
    width: 85px;
    height: 25px;
    background: url("images/floral-divider.svg")
                center / contain no-repeat;
    margin: 8px auto 0;
}

/* =================================
   Categorized Bakery Gallery
================================= */

.gallery-category {
    max-width: 1200px;
    margin: 50px auto;
    padding: 35px 25px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    background-color: rgba(244, 195, 78, 0.08);
}

/* Category Headings */

.gallery-category > h3 {
    font-size: 2.4rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
}

.gallery-category > h3::after {
    content: "";
    display: block;
    width: 140px;
    height: 35px;
    background: url("images/floral-divider.svg")
                center / contain no-repeat;
    margin: 10px auto 20px;
}

/* Gallery Layout */

.gallery-category .gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
    gap: 25px;
    margin: 25px auto 0;
}

/* Consistent Photograph Cards */

.gallery-item {
    display: flex;
    flex-direction: column;
    background-color: var(--cream);
    padding: 10px;
    border-radius: 16px;
}

.gallery-item a {
    display: block;
    border-radius: 10px;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background-color: var(--cream);
    border-radius: 10px;
}

.gallery-item figcaption {
    flex-grow: 1;
    font-size: 1.4rem;
    padding: 15px 8px;
}

/* Keyboard Accessibility */

.gallery-item a:focus-visible {
    outline: 3px solid var(--olive);
    outline-offset: 3px;
}

/* Gallery Information */

.gallery-note {
    max-width: 750px;
    margin: 35px auto 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--olive);
}

/* Mobile Gallery */

@media (max-width: 768px) {

    .gallery-category {
        padding: 25px 18px;
    }

    .gallery-category > h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .gallery-category {
        padding: 20px 12px;
        margin: 30px auto;
    }

    .gallery-category .gallery-grid {
        grid-template-columns: minmax(0, 300px);
        max-width: 100%;
    }

    .gallery-category > h3 {
        font-size: 1.8rem;
    }

    .gallery-item figcaption {
        font-size: 1.3rem;
    }
}
