/* Base Styles */
:root {
    --primary-color: #333333;   /* Charcoal grey for body text */
    --bg-color: #FFFFFF;        /* White main background */
    --text-light: #999999;      /* Light grey */
    --text-muted: #666666;      /* Muted grey */
    --teal-color: #48CFC4;      /* Vibrant turquoise teal */
    --accent-coral: #FF8E7A;    /* Playful coral/orange */
    --logo-green: #48CFC4;      /* Keep for compatibility */
    --font-main: 'Jost', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Pacifico', cursive; /* Script font for logo/headers */
    --container-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--primary-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	margin: 0px;
}

#canvas {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    flex: 1;
}


ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography & Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    display: flex;
    align-items: flex-end;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    color: var(--logo-green);
    font-size: 3.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 0.8;
    transform: scaleY(1.3);
    transform-origin: bottom;
}

.logo-ltd {
    font-family: var(--font-main);
    color: var(--logo-green);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-left: 6px;
    margin-bottom: 2px;
}

/* Header */
.desktop-header {
    display: none;
    padding: 40px 0;
    margin-bottom: 40px;
}

.desktop-header .header-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    gap: 35px;
}

.desktop-nav a,
.desktop-nav label {
    font-family: var(--font-main);
    font-size: 17px;
    color: #999;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 400;
    padding: 13px 0;
    display: inline-block;
    line-height: 1.6em;
    font-style: normal;
    text-decoration: none;
    cursor: pointer;
}

.desktop-nav a.nav-active {
    color: var(--primary-color);
}

.desktop-nav a:hover,
.desktop-nav label:hover {
    color: var(--primary-color);
}

/* Mobile Header */
.mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 40px;
}

.menu-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
}

.mobile-nav-overlay.active,
.menu-toggle:checked~.mobile-nav-overlay {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.mobile-nav-overlay ul {
    text-align: center;
}

.mobile-nav-overlay li {
    margin: 20px 0;
}

.mobile-nav-overlay a,
.mobile-nav-overlay label {
    font-family: var(--font-main);
    font-size: 32px;
    letter-spacing: 1px;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.6em;
    font-style: normal;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.mobile-nav-overlay a.nav-active {
    color: var(--primary-color);
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay label:hover {
    color: var(--primary-color);
}

/* Main Content */
.gallery-section {
    width: 100%;
    margin: 20px auto 80px;
}

/* Gallery Header & Switcher */
.gallery-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 22px;
    letter-spacing: 0.06em;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1.5em;
    margin: 0;
}

.gallery-header .section-title {
    margin-bottom: 0;
}

.view-switcher {
    display: none;
    /* Desktop only */
    position: absolute;
    right: 0;
    gap: 15px;
}

.switch-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    transition: all 0.3s ease;
}

.switch-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Default Grid Container Styles (Mobile/Tablet) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 15px;
    column-gap: 15px;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 34px;
        row-gap: 34px;
    }
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    scroll-margin-top: 100px;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 12px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

/* Colorsplash Focus Effect */
@media (hover: hover) {

    /* Only apply grayscale to others if ONE item is being hovered */
    .grid-container:has(.grid-item:hover) .grid-item:not(:hover) img {
        filter: grayscale(100%) opacity(0.7);
    }

    /* Keep the hovered item in full color and scale it */
    .grid-item:hover img {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.05);
    }
}

.item-title {
    font-size: 14px;
    letter-spacing: .06em;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
}

@media (max-width: 380px) {
    .item-title {
        font-size: 12px;
        letter-spacing: .03em;
    }
}

/* Footer */
footer {
    padding: 60px 0 50px;
}

.footer-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-group:not(:last-child) {
    margin-bottom: 25px;
}

.footer-column h3 {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px 0;
}

.footer-column p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--teal-color);
}

.footer-column p a {
    text-decoration: none;
    text-underline-offset: 4px;
}

.footer-column p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }
    
    footer {
        padding: 50px 0 40px;
    }
}

/* Media Queries for Desktop */
@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }

    .desktop-header {
        display: block;
    }

    .gallery-section {
        margin: 0px auto 100px;
    }

    .gallery-header {
        justify-content: flex-start;
    }

    .section-title {
        text-align: left;
        margin-bottom: 0px;
    }

    .image-wrapper {
        margin-bottom: 15px;
    }

    .footer-inner {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    #canvas {
        padding: 0;
        /* Keep desktop flush to the 1200px line when screen is wide enough */
    }
}

/* --- Designer Detail Modals --- */

/* The Background Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Show modal when the ID is in the URL */
.modal-overlay:target {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px 40px;
    background: #fff;
    position: relative;
    text-align: left;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    color: #999;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
    background: #f9f9f9;
    border-radius: 50%;
}

/* Bio Content Styling */
.modal-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.designer-url {
    display: block;
    font-size: 0.9rem;
    color: var(--logo-green);
    margin-bottom: 30px;
    text-decoration: none;
    font-weight: 500;
}

.designer-bio p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Action Buttons Area */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    width: 100%;
}

.modal-actions .btn-detail {
    flex: 1;
    width: 0;
    /* Ensures equal width distribution */
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    background: var(--accent-coral);
    color: #fff;
    border: 1px solid var(--accent-coral);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 400;
    min-width: 180px;
    /* Refined consistent width */
    white-space: nowrap;
    border-radius: 30px; /* Rounded pill style buttons to match the template */
}

.btn-detail i {
    margin-right: 12px;
    font-size: 1rem;
}

.btn-detail.primary {
    background: var(--accent-coral);
    color: #fff;
}

.btn-detail.primary:hover {
    background: var(--teal-color);
    border-color: var(--teal-color);
    color: #fff;
}

.btn-detail.secondary {
    background: transparent;
    color: var(--accent-coral);
    border-color: var(--accent-coral);
}

.btn-detail.secondary:hover {
    background: var(--accent-coral);
    color: #fff;
}

@media (max-width: 600px) {
    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-detail {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* --- Global Line Sheet Password Overlay --- */
.ls-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* Solid white to prevent content overlap */
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#ls-gate-toggle:checked~.ls-gate-overlay {
    opacity: 1;
    visibility: visible;
}

.ls-gate-content {
    max-width: 450px;
    width: 90%;
    text-align: center;
    padding: 40px;
}

.ls-gate-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ls-gate-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-gate-close:hover {
    color: #000;
    background: #f9f9f9;
    border-radius: 50%;
}

.ls-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    font-family: var(--font-main);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 20px;
    outline: none;
}

.ls-input:focus {
    border-color: var(--logo-green);
}

.ls-download {
    display: none;
    width: 100%;
}

.ls-input:valid~.ls-download {
    display: inline-block;
}

.ls-success-msg {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.ls-success-msg .fa-circle-check {
    font-size: 4rem;
    color: var(--logo-green);
    margin: 0 auto 25px auto;
    display: block;
    width: fit-content;
}

/* Let the success screen button use the standard artisan styles */
.ls-success-msg .btn-detail {
    margin: 30px auto 0 auto;
}

/* Absolute lock on button icon sizes to prevent warping across all artisan buttons */
.btn-detail i {
    margin-right: 12px !important;
    font-size: 1rem !important;
    display: inline-block !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    vertical-align: middle;
}

/* Toggle logic for success state */
#ls-confirm-toggle:checked~.ls-gate-overlay .ls-gate-form {
    display: none;
}

#ls-confirm-toggle:checked~.ls-gate-overlay .ls-success-msg {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-detail.disabled {
    display: none;
}

.title-header-container {
    max-width: 1100px;
    margin: 120px auto 40px;
    padding: 0 20px;
    text-align: left;
}

.page-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 550;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* About Page Styles */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
    padding: 0 20px 100px;
}

.about-text {
    flex: 1;
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 25px;
}

.about-image {
    flex: 0 0 400px;
    position: relative;
}

/* Offset background decoration */
.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: rgba(72, 207, 196, 0.08);
    border: 2px dashed rgba(72, 207, 196, 0.3);
    border-radius: 24px;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Elegant hand-drawn style signature badge */
.about-signature-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff7b63 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(255, 142, 122, 0.35);
    z-index: 3;
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.about-signature-badge .signature-name {
    font-family: var(--font-script);
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.about-signature-badge .signature-title {
    font-family: var(--font-main);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    font-weight: 500;
}

/* Hover interactions */
.about-image:hover::before {
    transform: translate(8px, 8px);
    background: rgba(72, 207, 196, 0.12);
    border-color: rgba(72, 207, 196, 0.5);
}

.about-image:hover .about-image-wrapper {
    transform: translate(-8px, -8px);
    box-shadow: 0 25px 50px rgba(72, 207, 196, 0.15);
    border-color: rgba(72, 207, 196, 0.2);
}

.about-image:hover .about-image-wrapper img {
    transform: scale(1.03);
}

.about-image:hover .about-signature-badge {
    transform: rotate(-5deg) translate(-5px, -5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 142, 122, 0.45);
}


@media (max-width: 900px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 60px;
        text-align: left;
        padding: 0 20px 100px;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Colorado Cupcakes & Coffee Rebranding Styles (Teal/Coral Theme)
   ========================================================================== */

/* Centered Floating Pill Navigation */
.nav-pill-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: auto;
    max-width: 90%;
}

.nav-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 6px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-pill:hover {
    box-shadow: 0 15px 35px rgba(72, 207, 196, 0.15);
    border-color: rgba(72, 207, 196, 0.3);
}

.nav-pill ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-pill li {
    display: inline-block;
}

.nav-pill a {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 550;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.nav-pill a:hover {
    color: var(--teal-color);
    background: rgba(72, 207, 196, 0.05);
}

.nav-pill a.nav-active {
    color: #ffffff !important;
    background: var(--teal-color) !important;
    box-shadow: 0 4px 10px rgba(72, 207, 196, 0.3);
}

/* Hero Section (Vibrant Turquoise Teal) */
.hero-banner {
    position: relative;
    background-color: var(--teal-color);
    padding: 150px 0 160px 0;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}

.hero-slider {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    pointer-events: none; /* Prevent clicks on hidden slides */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 5;
    height: 100%;
}

.hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-header {
    font-family: var(--font-script);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-subtext {
    font-size: 1.25rem;
    font-family: var(--font-main);
    font-weight: 300;
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Outlined Rounded Shop Now Button */
.btn-shop-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-shop-now:hover {
    background: #ffffff;
    color: var(--teal-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Floating Strawberry Cupcake */
.hero-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.floating-cupcake {
    max-height: 500px;
    margin-left: -40px;
    width: auto;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.12));
    animation: floatCupcake 5s ease-in-out infinite;
}

@keyframes floatCupcake {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* SVG Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    z-index: 10;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

/* 4 Coral Icon Categories Section */
.categories-section {
    padding: 60px 0 20px;
    background: #ffffff;
    width: 100%;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: #ffffff;
    border: 1px solid #f2ede6;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 142, 122, 0.15);
    border-color: var(--accent-coral);
}

.category-card.active {
    background: var(--accent-coral);
    color: #ffffff;
    border-color: var(--accent-coral);
    box-shadow: 0 10px 20px rgba(255, 142, 122, 0.3);
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 142, 122, 0.1);
    color: var(--accent-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    background: var(--accent-coral);
    color: #ffffff;
    transform: scale(1.1);
}

.category-card.active .category-icon-wrapper {
    background: #ffffff;
    color: var(--accent-coral);
}

.category-name {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--accent-coral);
}

.category-card.active .category-name {
    color: #ffffff;
}

/* Layout centering constraints for full-width #canvas structure */
.gallery-section {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    width: 100%;
}

.info-section-wrapper {
    background: #FAF6F0;
    border-top: 1px solid #E6DFD5;
    border-bottom: 1px solid #E6DFD5;
    padding: 80px 0;
    margin-bottom: 80px;
    width: 100%;
}

.info-section {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

footer {
    border-top: 1px solid #2e2e2e;
    background: #212121;
    width: 100%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modals Coral styling fix */
.designer-url {
    color: var(--accent-coral) !important;
}

.modal-content {
    border-radius: 12px;
}

.modal-content h2 {
    font-family: var(--font-main) !important;
    font-weight: 500;
}

/* Responsive tweaks for new elements */
@media (max-width: 992px) {
    .brand-header {
        font-size: 3.5rem;
    }
    .floating-cupcake {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-pill-container {
        top: 10px;
    }
    .nav-pill {
        padding: 4px 16px;
    }
    .nav-pill a {
        font-size: 11px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
    .hero-banner {
        padding: 110px 0 90px 0;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-text {
        text-align: center;
        align-items: center;
    }
    .brand-header {
        font-size: 2.2rem;
    }
    .hero-subtext {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .hero-image {
        justify-content: center;
    }
    .floating-cupcake {
        max-height: 280px;
        margin-left: 0;
    }
    .hero-wave {
        height: 60px;
    }
    .hero-wave svg {
        height: 60px;
    }
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        gap: 15px;
    }
    .info-section-wrapper {
        padding: 40px 0;
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   History Timeline Section (About Page)
   ========================================================================== */
/* ==========================================================================
   Horizontal Journey Grid Section (About Page)
   ========================================================================== */
.journey-section {
    padding: 100px 0;
    background: #FAF9F6; /* Premium warm off-white background */
    width: 100%;
}

.journey-header-container {
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    text-align: center;
}

.journey-title {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 555;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.journey-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--teal-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.journey-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Horizontal connecting timeline track (desktop only) */
.journey-grid::before {
    content: '';
    position: absolute;
    top: 52px; /* Aligns with the middle of the badge / dot */
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-color) 0%, var(--accent-coral) 100%);
    opacity: 0.25;
    z-index: 1;
}

.journey-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.journey-badge-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
}

.journey-year {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--teal-color);
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(72, 207, 196, 0.2);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.journey-line {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--teal-color);
    margin-top: 12px;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 0 5px #ffffff;
}

.journey-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.journey-card-text {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hover effects */
.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(72, 207, 196, 0.1);
    border-color: rgba(72, 207, 196, 0.2);
}

.journey-card:hover .journey-year {
    background: var(--accent-coral);
    box-shadow: 0 6px 15px rgba(255, 142, 122, 0.3);
}

.journey-card:hover .journey-line {
    transform: scale(1.3);
    border-color: var(--accent-coral);
    background: var(--accent-coral);
}

.journey-card:hover .journey-card-title {
    color: var(--accent-coral);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .journey-grid::before {
        display: none; /* Hide connector on grid wrapping */
    }
    .journey-card {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .journey-section {
        padding: 60px 0;
    }
    .journey-title {
        font-size: 1.8rem;
    }
}