/* =============================================================================
   The Garage Cafe - Homepage Styles
   Enterprise-Level Design with Glassmorphism, Animations, and Mobile-First
   ============================================================================= */

/* =============================================================================
   FIX: Prevent Double Scrollbars on Homepage
   The homepage is a full-viewport design. When present, we need to ensure
   only ONE scroll context exists (the body/html) - not nested scrollable areas.
   ============================================================================= */

/* When homepage exists, ensure html/body are the ONLY scroll context */
html:has(.tgc-homepage),
body:has(.tgc-homepage) {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    /* Prevent any scroll chaining issues on mobile */
    overscroll-behavior: none;
}

/* Reset main container when homepage is inside */
body:has(.tgc-homepage) .container,
body:has(.tgc-homepage) main.container,
body:has(.tgc-homepage) #main-content {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
    /* Don't create a new scroll context */
    height: auto;
}

/* =============================================================================
   CSS Variables & Base Setup
   ============================================================================= */
.tgc-homepage {
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Animation timing */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Full width but don't create scroll context */
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    /* CRITICAL: Don't set overflow here - let body handle scrolling */
    overflow: visible;
}

/* =============================================================================
   Animation Keyframes
   ============================================================================= */
@keyframes tgc-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes tgc-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tgc-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tgc-scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes tgc-grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

@keyframes tgc-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Animation Utilities */
.tgc-animate-fade-in {
    animation: tgc-fade-in 0.8s ease forwards;
}

.tgc-animate-slide-up {
    animation: tgc-slide-up 0.8s ease forwards;
}

.tgc-animate-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.tgc-animate-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* =============================================================================
   Section Base Styles
   ============================================================================= */
.tgc-section {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tgc-section--visible {
    opacity: 1;
    transform: translateY(0);
}

.tgc-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tgc-section__inner--wide {
    max-width: 1400px;
}

.tgc-section__title {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tgc-section__title--centered {
    text-align: center;
}

.tgc-section__title--light {
    color: #ffffff;
}

.tgc-section__subtitle {
    display: block;
    font-size: 0.5em;
    color: var(--accent-blue);
    margin-top: var(--spacing-xs);
    font-weight: 400;
}

.tgc-section__body {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.9;
}

.tgc-section__body--light {
    color: rgba(255, 255, 255, 0.9);
}

.tgc-section__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
    color: var(--text-primary);
    opacity: 0.8;
}

/* =============================================================================
   Button Styles
   ============================================================================= */
.tgc-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-spring);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tgc-btn__icon {
    width: 18px;
    height: 18px;
}

.tgc-btn--primary {
    background: var(--btn-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(239, 122, 4, 0.3);
}

.tgc-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 122, 4, 0.4);
    filter: brightness(1.1);
}

.tgc-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.tgc-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

.tgc-btn--light {
    background: rgba(255, 255, 255, 0.95);
    color: #1f1f1f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tgc-btn--light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tgc-btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.tgc-link--arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent-blue);
    font-family: 'Neon-Heavy', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all var(--transition-base);
}

.tgc-link--arrow::after {
    content: '→';
    transition: transform var(--transition-base);
}

.tgc-link--arrow:hover {
    color: var(--text-primary);
}

.tgc-link--arrow:hover::after {
    transform: translateX(5px);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.tgc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tgc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tgc-hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tgc-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(31, 31, 31, 0.7) 0%,
            rgba(31, 31, 31, 0.85) 50%,
            rgba(31, 31, 31, 0.95) 100%);
}

.tgc-hero__grain {
    position: absolute;
    inset: -200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    animation: tgc-grain 8s steps(10) infinite;
}

.tgc-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 900px;
}

.tgc-hero__headline {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 30px rgba(239, 122, 4, 0.3);
    line-height: 1.1;
}

.tgc-hero__tagline {
    font-family: 'Neon-Regular', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

.tgc-hero__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.tgc-hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tgc-hero__scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: tgc-scroll-bounce 2s infinite;
}

/* =============================================================================
   HERITAGE SECTION
   ============================================================================= */
.tgc-heritage__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.tgc-heritage__text {
    order: 2;
}

.tgc-heritage__visual {
    position: relative;
    order: 1;
}

.tgc-heritage__image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.tgc-heritage__image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent-blue);
    border-radius: 12px;
    opacity: 0.5;
    z-index: 1;
}

.tgc-heritage__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.tgc-heritage__image-frame:hover .tgc-heritage__image {
    transform: scale(1.05);
}

.tgc-heritage__badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--btn-gradient);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    animation: tgc-float 4s ease-in-out infinite;
}

.tgc-heritage__badge-text {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   PHILOSOPHY SECTION
   ============================================================================= */
.tgc-philosophy {
    background: linear-gradient(180deg, transparent 0%, rgba(239, 122, 4, 0.05) 50%, transparent 100%);
}

.tgc-philosophy__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.tgc-philosophy__card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 1px solid rgba(239, 122, 4, 0.2);
    text-align: center;
    transition: all var(--transition-spring);
    opacity: 0;
    transform: translateY(20px);
}

.tgc-section--visible .tgc-philosophy__card {
    opacity: 1;
    transform: translateY(0);
    animation: tgc-scale-in 0.5s ease forwards;
}

.tgc-philosophy__card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(239, 122, 4, 0.15);
}

.tgc-philosophy__icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, rgba(239, 122, 4, 0.2) 0%, rgba(211, 66, 32, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.tgc-philosophy__card:hover .tgc-philosophy__icon-wrapper {
    background: var(--btn-gradient);
    transform: scale(1.1);
}

.tgc-philosophy__icon {
    width: 36px;
    height: 36px;
    color: var(--accent-blue);
    transition: color var(--transition-base);
}

.tgc-philosophy__card:hover .tgc-philosophy__icon {
    color: var(--text-primary);
}

.tgc-philosophy__card-title {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.tgc-philosophy__card-text {
    font-family: 'Neon-Regular', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.tgc-philosophy__cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* =============================================================================
   GALLERY SECTION
   ============================================================================= */
.tgc-gallery {
    background: rgba(0, 0, 0, 0.3);
}

.tgc-gallery__wrapper {
    border-radius: 16px;
    overflow: hidden;
}

/* Override gallery component styles for homepage */
.tgc-gallery .image-gallery {
    gap: 12px !important;
}

.tgc-gallery .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-spring);
}

.tgc-gallery .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.tgc-gallery .gallery-image {
    transition: all var(--transition-slow);
}

.tgc-gallery .gallery-item:hover .gallery-image {
    filter: brightness(1.1);
}

/* =============================================================================
   DESTINATION SECTION
   ============================================================================= */
.tgc-destination {
    position: relative;
    padding: var(--spacing-3xl) var(--spacing-md);
    overflow: hidden;
}

.tgc-destination__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1a 100%);
    z-index: 0;
}

.tgc-destination__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(239, 122, 4, 0.15) 0%, transparent 60%);
}

.tgc-destination__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tgc-destination__icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(239, 122, 4, 0.4);
    animation: tgc-float 5s ease-in-out infinite;
}

.tgc-destination__icon {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
}

/* =============================================================================
   TESTIMONIALS SECTION
   ============================================================================= */
.tgc-testimonials__carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.tgc-testimonials__track {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.tgc-testimonial {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.tgc-testimonial--active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.tgc-testimonial__quote-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-blue);
    opacity: 0.5;
    margin-bottom: var(--spacing-md);
}

.tgc-testimonial__text {
    font-family: 'Neon-Regular', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    max-width: 700px;
    margin-bottom: var(--spacing-md);
}

.tgc-testimonial__stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

.tgc-testimonial__star {
    width: 20px;
    height: 20px;
    color: #ffc107;
    fill: #ffc107;
}

.tgc-testimonial__author {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tgc-testimonials__nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 122, 4, 0.3);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.tgc-testimonials__nav:hover {
    background: var(--btn-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

.tgc-testimonials__nav svg {
    width: 24px;
    height: 24px;
}

.tgc-testimonials__dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.tgc-testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tgc-testimonials__dot--active,
.tgc-testimonials__dot:hover {
    background: var(--accent-blue);
    transform: scale(1.2);
}

/* =============================================================================
   VISIT US SECTION
   ============================================================================= */
.tgc-visit__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.tgc-visit__card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 1px solid rgba(239, 122, 4, 0.2);
}

.tgc-visit__card-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tgc-visit__card-item:last-child {
    border-bottom: none;
}

.tgc-visit__icon {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.tgc-visit__label {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.tgc-visit__value {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.tgc-visit__value--link {
    text-decoration: none;
    transition: color var(--transition-base);
}

.tgc-visit__value--link:hover {
    color: var(--accent-blue);
}

.tgc-visit__hours {
    width: 100%;
    border-collapse: collapse;
}

.tgc-visit__hours td {
    padding: var(--spacing-xs) 0;
    font-family: 'Neon-Regular', sans-serif;
}

.tgc-visit__day {
    color: rgba(255, 255, 255, 0.7);
}

.tgc-visit__time {
    text-align: right;
    color: var(--text-primary);
    font-weight: 500;
}

.tgc-visit__map {
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */
.tgc-cta {
    background: linear-gradient(135deg, rgba(239, 122, 4, 0.15) 0%, rgba(211, 66, 32, 0.1) 100%);
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.tgc-cta__headline {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.tgc-cta__text {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.tgc-cta__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .tgc-section {
        padding: var(--spacing-3xl) var(--spacing-xl);
    }

    .tgc-heritage__content {
        grid-template-columns: 1fr 1fr;
    }

    .tgc-heritage__text {
        order: 1;
    }

    .tgc-heritage__visual {
        order: 2;
    }

    .tgc-philosophy__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tgc-visit__grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .tgc-testimonials__nav {
        display: flex;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .tgc-section {
        padding: 100px var(--spacing-xl);
    }

    .tgc-hero__content {
        padding: var(--spacing-xl);
    }

    .tgc-philosophy__card {
        padding: var(--spacing-2xl);
    }

    .tgc-visit__map {
        min-height: 450px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .tgc-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .tgc-hero__actions .tgc-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .tgc-hero__scroll-indicator {
        display: none;
    }

    .tgc-testimonials__nav {
        display: none;
    }

    .tgc-testimonials__track {
        min-height: 320px;
    }

    .tgc-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .tgc-cta__actions .tgc-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .tgc-gallery .image-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .tgc-philosophy__card {
        padding: var(--spacing-lg);
    }

    .tgc-visit__card {
        padding: var(--spacing-md);
    }

    .tgc-visit__map {
        min-height: 280px;
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {

    .tgc-animate-slide-up,
    .tgc-animate-fade-in,
    .tgc-philosophy__card,
    .tgc-heritage__badge,
    .tgc-destination__icon-wrapper,
    .tgc-hero__scroll-arrow {
        animation: none;
    }

    .tgc-section {
        opacity: 1;
        transform: none;
    }

    .tgc-testimonial {
        transition: opacity 0.3s ease;
        transform: none;
    }
}

/* Focus styles */
.tgc-btn:focus-visible,
.tgc-link--arrow:focus-visible,
.tgc-testimonials__nav:focus-visible,
.tgc-testimonials__dot:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

/* =============================================================================
   SIGNATURE SPECIALTIES SECTION
   ============================================================================= */
.tgc-specialties {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
}

.tgc-specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.tgc-specialty-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid rgba(239, 122, 4, 0.15);
    text-align: center;
    transition: all var(--transition-spring);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.tgc-section--visible .tgc-specialty-card {
    opacity: 1;
    transform: translateY(0);
    animation: tgc-scale-in 0.6s ease forwards;
}

.tgc-specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--btn-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tgc-specialty-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 25px 50px rgba(239, 122, 4, 0.2);
}

.tgc-specialty-card:hover::before {
    opacity: 1;
}

.tgc-specialty-card__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--btn-gradient);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 122, 4, 0.3);
}

.tgc-specialty-card__icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, rgba(239, 122, 4, 0.15) 0%, rgba(211, 66, 32, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
}

.tgc-specialty-card:hover .tgc-specialty-card__icon-wrapper {
    background: var(--btn-gradient);
    transform: scale(1.1) rotate(5deg);
}

.tgc-specialty-card__icon {
    width: 42px;
    height: 42px;
    color: var(--accent-blue);
    transition: all var(--transition-base);
}

.tgc-specialty-card:hover .tgc-specialty-card__icon {
    color: var(--text-primary);
}

.tgc-specialty-card__title {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.tgc-specialty-card__description {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.tgc-specialty-card__price {
    display: inline-block;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1.25rem;
    color: var(--accent-blue);
    background: rgba(239, 122, 4, 0.1);
    padding: 6px 16px;
    border-radius: 8px;
}

/* DoorDash Delivery Badge */
.tgc-specialties__delivery {
    margin-top: var(--spacing-xl);
}

.tgc-delivery-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(239, 122, 4, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tgc-delivery-badge__icon {
    width: 28px;
    height: 28px;
    color: #ff0000;
}

.tgc-delivery-badge__text {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
}

.tgc-delivery-badge__text strong {
    color: #ff0000;
}

.tgc-delivery-badge__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}

.tgc-delivery-badge__link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* =============================================================================
   HEMI CHALLENGE SECTION
   ============================================================================= */
.tgc-hemi {
    position: relative;
    padding: var(--spacing-3xl) var(--spacing-md);
    overflow: hidden;
}

.tgc-hemi__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1a0a 50%, #1a1a1a 100%);
    z-index: 0;
}

.tgc-hemi__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom center, rgba(239, 122, 4, 0.25) 0%, transparent 60%);
}

.tgc-hemi__flames {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(239, 122, 4, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.tgc-hemi__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.tgc-hemi__badge-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tgc-hemi__trophy-icon {
    width: 32px;
    height: 32px;
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.tgc-hemi__badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a0a0a;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tgc-hemi__title {
    font-family: 'Neon-Heavy', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 30px rgba(239, 122, 4, 0.4);
}

.tgc-hemi__description {
    font-family: 'Neon-Regular', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.tgc-hemi__description strong {
    color: var(--accent-blue);
}

.tgc-hemi__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tgc-hemi__stat {
    flex: 1;
    min-width: 100px;
    background: rgba(239, 122, 4, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 122, 4, 0.2);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.tgc-hemi__stat:hover {
    background: rgba(239, 122, 4, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.tgc-hemi__stat-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.tgc-hemi__stat-value {
    display: block;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

.tgc-hemi__stat-label {
    display: block;
    font-family: 'Neon-Regular', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tgc-hemi__prize {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-family: 'Neon-Regular', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

.tgc-hemi__prize strong {
    color: #ffd700;
}

/* Flame Button */
.tgc-btn--flame {
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 50%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.4);
}

.tgc-btn--flame:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 69, 0, 0.5);
    filter: brightness(1.1);
}

/* Hemi Visual */
.tgc-hemi__visual {
    position: relative;
}

.tgc-hemi__image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(239, 122, 4, 0.3);
}

.tgc-hemi__image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 69, 0, 0.5);
    border-radius: 16px;
    z-index: 2;
}

.tgc-hemi__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.tgc-hemi__image-frame:hover .tgc-hemi__image {
    transform: scale(1.05);
}

.tgc-hemi__image-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 69, 0, 0.1) 100%);
    pointer-events: none;
}

.tgc-hemi__success-rate {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.4);
    animation: tgc-float 4s ease-in-out infinite;
}

.tgc-hemi__success-value {
    display: block;
    font-family: 'Neon-Heavy', sans-serif;
    font-size: 1.75rem;
    color: #fff;
}

.tgc-hemi__success-label {
    display: block;
    font-family: 'Neon-Regular', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   RESPONSIVE - NEW SECTIONS
   ============================================================================= */
@media (min-width: 768px) {
    .tgc-hemi__content {
        grid-template-columns: 1fr 1fr;
    }

    .tgc-hemi__info {
        order: 1;
    }

    .tgc-hemi__visual {
        order: 2;
    }
}

@media (max-width: 768px) {
    .tgc-specialties__grid {
        grid-template-columns: 1fr;
    }

    .tgc-specialty-card {
        padding: var(--spacing-lg);
    }

    .tgc-delivery-badge {
        flex-direction: column;
        text-align: center;
    }

    .tgc-hemi__stats {
        justify-content: center;
    }

    .tgc-hemi__stat {
        flex: 0 0 calc(50% - var(--spacing-sm));
    }
}

/* =============================================================================
   iOS Safari Performance Fixes
   Safari has known issues with backdrop-filter and continuous animations
   ============================================================================= */

/* Detect iOS Safari via touch + standalone capability check */
@supports (-webkit-touch-callout: none) {

    /* Disable expensive backdrop-filter on iOS */
    .tgc-philosophy__card,
    .tgc-testimonials__nav,
    .tgc-btn--secondary {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        /* Use solid fallback backgrounds instead */
        background: rgba(40, 40, 40, 0.95);
    }

    /* Disable the grain animation - it's VERY expensive on mobile */
    .tgc-hero__grain {
        animation: none;
        display: none;
    }

    /* Reduce transform animations that cause repaints */
    .tgc-heritage__badge,
    .tgc-destination__icon-wrapper {
        animation: none;
    }

    /* Simplify hover effects that don't work well on touch anyway */
    .tgc-philosophy__card:hover,
    .tgc-heritage__image-frame:hover .tgc-heritage__image {
        transform: none;
    }
}

/* =============================================================================
   Reduced Motion Preferences
   For users who have enabled "Reduce Motion" in accessibility settings
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {

    /* Disable all animations */
    .tgc-homepage *,
    .tgc-homepage *::before,
    .tgc-homepage *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Remove grain overlay entirely */
    .tgc-hero__grain {
        display: none;
    }

    /* Keep sections visible without animation */
    .tgc-section {
        opacity: 1;
        transform: none;
    }

    .tgc-philosophy__card {
        opacity: 1;
        transform: none;
    }

    /* Disable scroll indicator bounce */
    .tgc-hero__scroll-arrow {
        animation: none;
    }
}