@import 'fonts.css';

:root {
  --primary: #FF6B00;
  --on-primary: #fff0ea;
  --surface: #FCFAF2; /* Creamier "Paper" color */
  --on-surface: #2d2f2f;
  --inverse-surface: #0c0f0f;
  --tertiary-container: #fdd400;
  --on-tertiary-fixed: #433700;
  --dots-color: rgba(255, 107, 0, 0.05); /* Very light theme color dots */
  
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--on-surface);
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
}

.navbar .container {
  padding-left: 0;
  padding-right: 0;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  overflow-x: hidden;
  background-color: var(--surface);
  color: var(--on-surface);
}
.custom-selection::selection {
  background-color: #ffd8c8;
  color: white;
}

/* Typography Overrides */
.font-logo { font-family: 'Nautilus', cursive !important; text-transform: none !important; font-style: normal !important; }
.font-headline { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-body { font-family: 'Be Vietnam Pro', sans-serif; }
.font-black { font-weight: 900 !important; }
.font-bold { font-weight: 700 !important; }
.italic { font-style: italic !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-tight { line-height: 1.25 !important; }

/* Text Sizes mapped to custom because Bootstrap display sizes aren't 1:1 with Tailwind sometimes */
/* Tailwind text-9xl = 8rem = 128px */
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }
.text-7xl { font-size: 4.5rem !important; line-height: 1 !important; }
.text-8xl { font-size: 6rem !important; line-height: 1 !important; }
.text-9xl { font-size: 8rem !important; line-height: 1 !important; }

/* Colors */
.text-primary { color: var(--primary) !important; }
.text-white { color: #fff !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-black { background-color: #000 !important; }
.bg-white { background-color: #fff !important; }
.text-inverse-surface { color: var(--inverse-surface) !important; }
.bg-tertiary-container { background-color: var(--tertiary-container) !important; }
.text-on-tertiary-fixed { color: var(--on-tertiary-fixed) !important; }
.hover-bg-primary:hover { background-color: var(--primary) !important; color: white !important; }
.text-on-surface-variant { color: #4a4d4d !important; }
.text-secondary { color: #6c757d !important; }

/* Custom Underline */
.decoration-8 { text-decoration-thickness: 8px !important; }
.underline-offset-8 { text-underline-offset: 8px !important; }
.underline { text-decoration-line: underline !important; }

/* Borders & Shadows */
.border-4 { border-width: 4px !important; }
.border-b-4 { border-bottom-width: 4px !important; }
.border-t-8 { border-top-width: 8px !important; }
.border-black { border-color: #000 !important; }
.border-primary { border-color: var(--primary) !important; }

/* Specific border colors manually implemented in html style or classes */
.border-orange-800 { border-color: #9a3412 !important; }

.shadow-xl { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05) !important; }
.shadow-2xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important; }

/* Custom Graphics */
.comic-border {
    border: 4px solid #0c0f0f !important;
    box-shadow: 4px 4px 0px 0px #0c0f0f !important;
}
.comic-border-thin {
    border: 3px solid #0c0f0f !important;
    box-shadow: 2px 2px 0px 0px #0c0f0f !important;
}
.wavy-divider {
    height: 120px;
    width: 100%;
    background-color: var(--primary);
    clip-path: polygon(0 20%, 10% 10%, 20% 25%, 30% 5%, 40% 20%, 50% 10%, 60% 25%, 70% 5%, 80% 20%, 90% 10%, 100% 25%, 100% 100%, 0 100%);
    margin-top: -20px; /* Slight overlap to prevent gaps */
    position: relative;
    z-index: 10;
}
.hero-bottom-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 5;
    pointer-events: none;
}
.wavy-divider-top {
    height: 120px;
    width: 100%;
    background-color: var(--primary);
    clip-path: polygon(0 75%, 10% 90%, 20% 75%, 30% 95%, 40% 80%, 50% 90%, 60% 75%, 70% 95%, 80% 80%, 90% 90%, 100% 75%, 100% 0, 0 0);
}

.speech-bubble { position: relative; background: #ffffff; border: 3px solid #0c0f0f; border-radius: 2rem; padding: 1.5rem; }
.speech-bubble::after { content: ''; position: absolute; bottom: -20px; left: 40px; border-width: 20px 20px 0; border-style: solid; border-color: #0c0f0f transparent; display: block; width: 0; }
.speech-bubble::before { content: ''; position: absolute; bottom: -14px; left: 42px; border-width: 18px 18px 0; border-style: solid; border-color: #ffffff transparent; display: block; width: 0; z-index: 1; }

.doodle-bg {
    position: absolute;
    pointer-events: none;
    z-index: 1; /* Move behind content (prevents blocking) */
    opacity: 0.15;
    user-select: none;
    transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
    .doodle-bg {
        font-size: 5rem !important; /* Scale down on mobile */
    }
}

/* Halftone Texture Overlay */
.halftone-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--dots-color) 2px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0; /* Background layer */
}

.bg-primary .halftone-overlay {
    --dots-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes slide-up {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.1); }
}
@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.animate-bounce { animation: bounce 1s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce-in { animation: bounce-in 0.6s ease-out forwards; }
.animate-wiggle { animation: wiggle 1s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.8s ease-out forwards; }

.reveal-on-scroll { opacity: 0; }
.reveal-on-scroll.active { opacity: 1; }

.floating {
    animation: floating 3s ease-in-out infinite;
}

.hero-background-carousel {
    position: absolute !important;
    top: calc(var(--nav-height, 5.1rem) * -1) !important; /* Offset the dynamic padding */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.hero-background-carousel .carousel-inner,
.hero-background-carousel .carousel-item {
    height: 100% !important;
}

.hero-background-carousel img {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
    filter: brightness(0.6) contrast(1.1);
}

.gallery-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-image-container img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-background-carousel .carousel-control-prev,
.hero-background-carousel .carousel-control-next {
    display: flex !important;
    pointer-events: auto !important;
    z-index: 20 !important;
    width: 6rem !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

.hero-background-carousel .carousel-control-prev:hover .w-12,
.hero-background-carousel .carousel-control-next:hover .w-12,
.carousel-control-prev:hover .w-12,
.carousel-control-next:hover .w-12 {
    background-color: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
}
.hero-background-carousel .carousel-control-next:hover {
    opacity: 1 !important;
}

.hero-glass-card {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 4px solid #000 !important;
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 0.4) !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.btn-nowrap {
    white-space: nowrap !important;
}

.hero-sticker-pizza {
    position: absolute !important;
    width: 12rem !important;
    top: -4rem !important;
    left: -4rem !important;
    z-index: 20 !important;
}
.hero-sticker-chicken {
    position: absolute !important;
    width: 10rem !important;
    bottom: -4rem !important;
    right: -4rem !important;
    z-index: 20 !important;
}

.fixed-fab.smooth-show {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 767.98px) {
    .fixed-fab.smooth-show {
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }
    .fixed-fab.smooth-show.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-glass-card {
        padding: 2.5rem 1.5rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .hero-sticker-pizza {
        width: 7rem !important;
        top: -3rem !important;
        left: -2rem !important;
    }
    .hero-sticker-chicken {
        width: 6rem !important;
        bottom: -2.5rem !important;
        right: -1.5rem !important;
    }
    .decoration-8-sm { text-decoration-thickness: 4px !important; }
    .underline-offset-8-sm { text-underline-offset: 4px !important; }
}

/* Rotations using CSS Variables to avoid clobbering */
.rotate-1 { --tw-rotate: 1deg; }
.rotate-2 { --tw-rotate: 2deg; }
.rotate-3 { --tw-rotate: 3deg; }
.rotate-6 { --tw-rotate: 6deg; }
.rotate-12 { --tw-rotate: 12deg; }
.lg-translate-y-8 { --tw-translate-y: 2rem; }
@media (max-width: 991.98px) {
  .lg-translate-y-8 { --tw-translate-y: 0; }
}

.-rotate-1 { --tw-rotate: -1deg; }
.-rotate-2 { --tw-rotate: -2deg; }
.-rotate-6 { --tw-rotate: -6deg; }
.-rotate-12 { --tw-rotate: -12deg; }

/* Base transform handling */
.comic-border, .comic-border-thin {
    transform: rotate(var(--tw-rotate, 0deg)) translate3d(var(--tw-translate-x, 0), var(--tw-translate-y, 0), 0) !important;
}

/* Miscellaneous specific Tailwind classes mapped */
.aspect-square { aspect-ratio: 1 / 1 !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-pill { border-radius: 50rem !important; } /* BS Pill override */
.rounded-custom-img { border-radius: 3rem !important; }
.rounded-custom-box { border-radius: 4rem !important; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05) !important; }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0) !important; }

.grayscale { filter: grayscale(100%) !important; }
.transition-all { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important; }
.transition-custom { 
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) !important; 
  will-change: transform, box-shadow; 
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 300ms !important; }
.transition-transform { transition-property: transform !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 300ms !important; }

.hover\:scale-110:hover { transform: scale(1.1) !important; }
.hover\:scale-105:hover { transform: scale(1.05) !important; }
.active\:scale-95:active { transform: scale(0.95) !important; }

.hover\:translate-x-1:hover { --tw-translate-x: 0.25rem !important; }
.hover\:translate-y-1:hover { --tw-translate-y: 0.25rem !important; }
.hover\:translate-xy-1:hover { --tw-translate-x: 0.25rem !important; --tw-translate-y: 0.25rem !important; }

.hover\:shadow-none:hover { box-shadow: none !important; }

.object-cover { object-fit: cover !important; }

/* Spacing specifics for 1:1 match */
.pt-24-custom { padding-top: var(--nav-height, 5rem) !important; }
.min-h-90vh { min-height: 90vh !important; }
.min-h-100vh { min-height: 100vh !important; }
.h-viewport-minus-nav { height: calc(100vh - var(--nav-height, 5rem)) !important; min-height: calc(100vh - var(--nav-height, 5rem)) !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.w-24 { width: 6rem !important; }
.h-24 { height: 6rem !important; }
.w-28 { width: 7rem !important; }
.h-28 { height: 7rem !important; }
.leading-none { line-height: 1 !important; }

/* Header spacing compensation (reduced to navbar height) */
.pt-24-custom { padding-top: var(--nav-height, 5rem) !important; }

/* Z-indexing */
.z-50 { z-index: 50 !important; }
.z-20 { z-index: 20 !important; }
.z-10 { z-index: 10 !important; }
.z-0 { z-index: 0 !important; }

/* FAB Specific fix */
.fixed-fab {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 1050 !important; /* Above everything but below BS Navbar if needed */
}

/* Sticky/Fixed */
.fixed { position: fixed !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }

/* Pos utilities */
.top-0 { top: 0 !important; }
.left-0 { left: 0 !important; }
.-top-10 { top: -2.5rem !important; }
.-right-10 { right: -2.5rem !important; }
.-bottom-5 { bottom: -1.25rem !important; }
.-left-10 { left: -2.5rem !important; }
.top-2 { top: 0.5rem !important; }
.right-2 { right: 0.5rem !important; }
.bottom-8 { bottom: 2rem !important; }
.right-8 { right: 2rem !important; }

/* Doodles Pos */
.top-20 { top: 5rem !important; }
.left-10 { left: 2.5rem !important; }
.top-60 { top: 15rem !important; }
.right-20 { right: 5rem !important; }
.bottom-40 { bottom: 10rem !important; }
.left-1-4 { left: 25% !important; }
.top-1-2 { top: 50% !important; }
.right-1-4 { right: 25% !important; }
.bottom-1-3 { bottom: 33.33% !important; }
.left-5 { left: 1.25rem !important; }
.top-1-3 { top: 33.33% !important; }
.right-10 { right: 2.5rem !important; }
.bottom-10 { bottom: 2.5rem !important; }

/* Group */
.max-w-sm { max-width: 24rem !important; }
.max-w-xl { max-width: 36rem !important; }

/* W and H specific tailwind */
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.w-24 { width: 6rem !important; }
.h-24 { height: 6rem !important; }

.w-40 { width: 10rem !important; }
.h-40 { height: 10rem !important; }
.w-48 { width: 12rem !important; }
.h-48 { height: 12rem !important; }
.w-72 { width: 18rem !important; }
.h-72 { height: 18rem !important; }

/* Opacity */
.opacity-15 { opacity: 0.15 !important; }

.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

@media (max-width: 992px) {
  .lg-translate-y-8 { transform: translateY(0) !important; }
  .text-6xl { font-size: 3rem !important; } /* Mobile headers */
  .text-7xl { font-size: 3.5rem !important; }
  .text-8xl { font-size: 4rem !important; }
  .text-9xl { font-size: 5rem !important; }
  
  /* Hero Stickers mobile scaling */
  .w-40.h-40 { width: 7rem !important; height: 7rem !important; }
  .w-48.h-48 { width: 8rem !important; height: 8rem !important; }
  .w-40 i, .w-40 span { font-size: 3rem !important; }
  .w-48 i, .w-48 span { font-size: 3.5rem !important; }
  .w-40 p, .w-48 p { font-size: 0.7rem !important; }

  /* Push Fresh Tag down on mobile */
  .fresh-tag { margin-top: 2rem !important; }

  /* Move About text up */
  #about { padding-top: 2rem !important; }

  /* Doodle Mobile Swap */
  .hero-doodle-1 { top: 15rem !important; left: auto !important; right: 5rem !important; font-size: 10rem !important; }
  .hero-doodle-2 { top: 5rem !important; right: auto !important; left: 2.5rem !important; width: 7rem !important; }
}

/* Gallery Lightbox */
.cursor-pointer { cursor: pointer !important; }
.lightbox_box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox_box.active {
    display: flex;
    opacity: 1;
}
.lightbox_box_in {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox_content {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#lightboxImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}
.lightbox_box.active .lightbox_content {
    transform: scale(1);
}
.lightbox_close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.lightbox_close:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .lightbox_close {
        top: 10px;
        right: 10px;
    }
}

/* Lightbox Nav Arrows - Minimalist Style */
.lightbox_nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2rem;
    flex-shrink: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
}
.lightbox_nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}
.lightbox_nav span {
    font-weight: 400;
}

/* Lightbox Index Badge - Minimalist */
.lightbox_index {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    z-index: 10;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .lightbox_box_in {
        flex-direction: column;
        padding: 1rem;
    }
    .lightbox_nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 50px;
        height: 50px;
    }
    .lightbox_prev { left: 10px; }
    .lightbox_next { right: 10px; }
    .lightbox_index { bottom: -30px; }
}
