* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: block;
    height: 15px;
}

.nav-logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.dark-nav .nav-logo svg polygon,
.dark-nav .nav-logo svg path,
.dark-nav .nav-logo svg rect {
    fill: #25302f;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #f4ede5;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.dark-nav .nav-link {
    color: #25302f;
}

.nav-link:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f4ede5;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dark-nav .hamburger span {
    background: #25302f;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Keep hamburger white when menu is active */
.hamburger.active span {
    background: #f4ede5 !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(37, 48, 47, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu .nav-link {
        font-size: 2rem;
        font-weight: 600;
        color: #f4ede5 !important;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
    }
}

.hero {
    background-color: #25302f;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    max-width: 90%;
    width: 600px;
    height: auto;
    display: block;
}

.tagline {
    color: #f4ede5;
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    animation: fade-in 2.2s ease-in-out forwards;
}

.next-section {
    background-color: #25302f;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
}

.section-content {
    width: 50%;
    padding-right: 2rem;
}

.section-headline {
    color: #d49c2a;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: right;
    margin: 0 0 2rem 0;
}

.section-paragraph {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: right;
    margin: 0;
    padding-bottom: 2.5rem;
    position: relative;
}

.section-paragraph::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    height: 1px;
    background-color: #f4ede5;
}

.section-subheadline {
    color: #d49c2a;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: right;
    margin: 2.5rem 0 0 0;
}

.section-list {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: right;
    margin: 1.5rem 0 0 0;
}

.image-container {
    width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    pointer-events: none;
    overflow: visible;
}

.scroll-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    position: absolute;
    top: -200px;
    overflow: visible;
}

.scroll-image .cart-ring {
    animation: spin 20s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.team-section {
    background-color: #25302f;
    min-height: 100vh;
    padding: 0 2rem 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-images {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 4rem;
    position: relative;
    max-width: 964px;
    margin: 0 auto;
}

.team-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d49c2a;
}

.team-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #25302f;
    color: #d49c2a;
    padding: 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-image {
    width: 300px;
    height: 350px;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
}

.team-image-2 {
    object-position: center 10%;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-info {
    margin-top: 1rem;
    text-align: center;
}

.team-name {
    color: #f4ede5;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.team-title {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.white-section {
    background-color: #d49c2a;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cart-bg-icon {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.08;
    transition: opacity 0.3s ease;
}

.cart-bg-icon.active {
    opacity: 0.5;
}

.white-section-headline {
    color: #25302f;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    width: 100%;
    position: relative;
    z-index: 1;
}

.headline-break {
    display: inline-block;
    margin-bottom: 2rem;
}

.cream-section {
    background-color: #f4ede5;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cream-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1200px;
}

.cream-headline-wrapper {
    position: relative;
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cream-headline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d49c2a;
}

.cream-section-headline {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    background-color: #f4ede5;
    color: #d49c2a;
    padding: 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
}

.cream-section-subheadline {
    color: #25302f;
    font-size: 1.25rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 4rem 0;
}

.cream-section-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.four-column-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.four-column-headline {
    color: #f4ede5;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 4rem 2rem 2rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}

.four-column-content {
    display: flex;
    flex: 1;
}

.column {
    flex: 1;
    padding: 7rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.column-icon {
    max-width: 100%;
    height: auto;
    display: block;
}

.column-label {
    color: #d49c2a;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.column-description {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

.column-button {
    background-color: #ee352b;
    color: #f4ede5;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.column-button:hover {
    opacity: 0.8;
}

.column-1 {
    background-color: #242f2e;
}

.column-2 {
    background-color: #3a4645;
}

.column-3 {
    background-color: #505d5c;
}

.column-4 {
    background-color: #667473;
}

.new-cream-section {
    background-color: #f4ede5;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.new-cream-section .section-content {
    width: 100%;
    max-width: 1200px;
    padding-right: 50%;
    text-align: right;
}

.new-cream-section .section-headline {
    color: #25302f;
    margin-bottom: 0.5rem;
}

.new-cream-section .section-paragraph {
    color: #25302f;
    font-size: 1.5rem;
    font-weight: 600;
}

.new-cream-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.new-cream-icon-container {
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 2rem;
    overflow: visible;
}

.new-cream-icon {
    width: 300px;
    height: auto;
    max-width: 100%;
    overflow: visible;
}

.cream-cart-ring {
    animation: spin 20s linear infinite;
    transform-origin: center;
}

.footer {
    background-color: #ee352b;
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    height: 20px;
}

.footer-logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.footer-copyright {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 1rem 0 0 0;
}

.footer-text {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 0;
    padding-bottom: 1.5rem;
    position: relative;
    text-align: right;
}

.footer-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 5%;
    height: 2px;
    background-color: #f4ede5;
}

.footer-contact {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 1rem 0 0 0;
    text-align: right;
    line-height: 1.8;
}

.footer-contact-stroke {
    padding-top: 1.5rem;
    position: relative;
}

.footer-contact-stroke::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5%;
    height: 2px;
    background-color: #f4ede5;
}

.footer-email {
    color: #f4ede5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.7;
}

/* Pure stroke drawing animation with simultaneous fill */
.letter-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    fill-opacity: 0;
    animation: draw-and-fill 2.2s ease-in-out forwards;
}

@keyframes draw-and-fill {
    0% {
        stroke-dashoffset: 1000;
        fill-opacity: 0;
        stroke-opacity: 1;
    }
    60% {
        stroke-dashoffset: 400;
        fill-opacity: 1;
        stroke-opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Large screens */
@media (min-width: 1080px) {
    .logo {
        width: 900px;
    }

    .tagline {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .scroll-image {
        max-width: 195px;
    }
}

@media (min-width: 1444px) {
    .column-icon {
        max-width: 70%;
    }

    .four-column-headline {
        font-size: 3rem;
        padding-bottom: 0.5rem;
    }

    .column {
        padding: 10rem 2rem 2rem 2rem;
    }

    .white-section-headline {
        font-size: 4.5rem;
    }

    .cream-section-headline {
        font-size: 3rem;
    }

    .team-label {
        font-size: 3rem;
    }

    .nav-container {
        max-width: 1600px;
        padding: 0 2rem;
    }

    .footer-content {
        max-width: 1600px;
    }

    .footer {
        padding: 4rem 2rem 2rem 2rem;
    }

    .next-section {
        padding-bottom: 0;
    }

    .team-section {
        padding-top: 0;
        padding-bottom: 2rem;
        margin-top: -4rem;
    }

    .team-images {
        padding-top: 4rem !important;
    }

    .new-cream-section .section-content {
        max-width: 1600px;
    }
}

@media (min-width: 1028px) and (max-width: 1475px) {
    .next-section {
        padding-bottom: 0;
    }

    .team-section {
        padding-top: 0;
        margin-top: -4rem;
    }
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .nav-logo {
        display: none;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .hero {
        background-size: 100% 100%;
        aspect-ratio: 1400 / 680;
        min-height: auto;
    }

    .next-section {
        padding: 4rem 2rem;
    }

    .section-content {
        width: 100%;
        padding-right: 0;
    }

    .section-headline {
        text-align: left;
    }

    .section-paragraph {
        text-align: left;
    }

    .section-paragraph::after {
        left: 0;
        right: auto;
    }

    .section-subheadline {
        text-align: left;
    }

    .section-list {
        text-align: left;
    }

    .image-container {
        display: none;
    }

    .scroll-image {
        display: none;
    }

    .team-section {
        padding-top: 6rem;
    }

    .four-column-content {
        flex-direction: column;
    }

    .column {
        width: 100%;
        padding-top: 10rem;
    }

    .column-icon {
        max-width: 50%;
    }

    section {
        overflow-x: hidden;
    }

    .new-cream-icon-container {
        display: none;
    }

    .new-cream-section .section-content {
        text-align: left;
        padding-right: 0;
    }

    .new-cream-section .section-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 518px) {
    .hero-content {
        gap: 0.65rem;
    }

    .logo {
        width: 85%;
        max-width: 450px;
    }

    .tagline {
        font-size: 0.5rem;
    }
}

@media (max-width: 468px) {
    .new-cream-section .section-headline {
        font-size: 1.75rem;
    }

    .new-cream-section .section-paragraph {
        font-size: 1rem;
    }
}

@media (max-width: 450px) {
    .column {
        padding: 12rem 2rem 12rem 2rem;
    }

    .footer-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .footer-left {
        margin-top: 3rem;
    }

    .footer-right {
        width: 100%;
    }

    .footer-text {
        font-size: 0.65rem;
        text-align: left;
        padding-bottom: 1rem;
    }

    .footer-text::after {
        left: 0;
        right: auto;
    }

    .footer-contact {
        font-size: 0.65rem;
        text-align: left;
    }

    .footer-contact-stroke::before {
        left: 0;
        right: auto;
    }

    .footer-copyright {
        font-size: 0.65rem;
    }

    .footer-logo {
        height: 16px;
    }

    .white-section-headline {
        font-size: 1.5rem;
    }

    .white-section {
        min-height: 50vh;
    }

    .team-images::before {
        display: none;
    }

    .team-label {
        background-color: transparent;
    }

    .cream-section {
        min-height: 50vh;
        padding: 2rem 1rem;
    }

    .cream-section-headline {
        font-size: 1.25rem;
        white-space: normal;
    }

    .cream-headline-wrapper::before {
        display: none;
    }

    .cream-section-subheadline {
        font-size: 0.875rem;
        margin: 0 0 2rem 0;
    }

    .cream-section-image {
        max-width: 100%;
        height: auto;
    }
}
