/* Shared styles for sitweb templates */

:root {
    /* Single global color palette */
    --primary: #e86f1c;
    --secondary-orange: #ff8c1a;

    /* ---- Pro Font Stack ---- */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------
   GLOBAL TYPOGRAPHY
   Inter for entire site — clean, modern, highly legible
   Matches the about.html style applied across all pages
   ------------------------------------------------------------------ */

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

html,
body {
    font-family: var(--font-body) !important;
    font-weight: 400;
}

/* Body text, navigation, interactive elements → Inter */
p,
span,
div,
a,
li,
td,
th,
label,
input,
textarea,
select,
button,
.btn,
.nav-link,
.hero-subtitle,
.section-subtitle,
.dish-description,
.cta-text,
.form-input,
.form-label,
.footer-links a,
.footer-contact li,
.mobile-nav-link {
    font-family: var(--font-body) !important;
}

/* Headings → Inter (bold weights) */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.cta-title,
.dish-title,
.footer-title,
.auth-title,
.auth-logo,
.logo-text {
    font-family: var(--font-heading) !important;
}

/* ---- Heading weights & line-height ---- */
h1, .hero-title {
    font-weight: 700;
    line-height: 1.2;
}

h2, h3, .section-title, .cta-title {
    font-weight: 600;
    line-height: 1.25;
}

h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Keep base template spacing consistent */
body {
    margin: 0;
}

/* Desktop Cart Styles */
.desktop-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.desktop-cart:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.desktop-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

@media (max-width: 768px) {
    .desktop-cart {
        display: none;
    }
}


/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1300;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.blog-ticker-section {
    padding: 3rem 0 3.5rem;
    background: #0f0f0f;
    overflow: hidden;
    position: relative;
}

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

.blog-ticker-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.blog-ticker-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.blog-ticker-cta:hover { color: var(--primary); }

.blog-ticker-track-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ticker-fade {
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 2;
}

.ticker-fade-left {
    left: 0;
    background: linear-gradient(to right, #0f0f0f 0%, transparent 100%);
}

.ticker-fade-right {
    right: 0;
    background: linear-gradient(to left, #0f0f0f 0%, transparent 100%);
}

.blog-ticker-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: ticker-scroll 35s linear infinite;
    will-change: transform;
    padding: 0.5rem 0;
}

.blog-ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.blog-ticker-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1rem 1.3rem;
    min-width: 320px;
    max-width: 340px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-ticker-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,111,28,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.blog-ticker-card:hover {
    border-color: var(--primary);
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232,111,28,0.18);
}

.blog-ticker-card:hover::before { opacity: 1; }

.ticker-card-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ticker-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-ticker-card:hover .ticker-card-img img { transform: scale(1.08); }

.ticker-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
}

.ticker-card-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.85;
}

.ticker-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.ticker-card-excerpt {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.placeholder-card { opacity: 0.5; pointer-events: none; }

/* Hero Logo Styles */
.hero-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.hero-logo:hover .hero-logo-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 150px;
        max-height: 90px;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-ticker-section { padding: 2.5rem 0 3rem; }
    .blog-ticker-card { min-width: 270px; max-width: 280px; padding: 0.85rem 1rem; }
    .ticker-card-img { width: 58px; height: 58px; }
    .ticker-card-title { font-size: 0.82rem; max-width: 170px; }
    .ticker-fade { width: 60px; }
}


