/* ==========================================================================
   Twice The Deal Pizza - modern refresh (Oct 2026)
   Loaded last from Site.master, so it overrides main.css / white.css /
   siteupdate.css without editing them. To roll back, remove the
   <link href="Styles/modern.css"> line from Site.master.
   ========================================================================== */

:root {
    --ttd-green: #41763E;
    --ttd-green-dark: #2C5429;
    --ttd-green-deep: #1F3D1D;
    --ttd-yellow: #F5D010;
    --ttd-yellow-dark: #DDB900;
    --ttd-cream: #FFF9EE;
    --ttd-ink: #1C1F1B;
    --ttd-muted: #5E665C;
    --ttd-radius: 20px;
    --ttd-shadow: 0 10px 30px -12px rgba(20, 40, 18, .35);
    --ttd-font: 'Poppins', 'Exo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ttd-script: 'Lily Script One', cursive;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; background: var(--ttd-green-deep); }
body {
    font-family: var(--ttd-font);
    background: var(--ttd-cream);
    color: var(--ttd-ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ttd-font); color: var(--ttd-ink); }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ttd-yellow); outline-offset: 2px; }

/* ---------- Header ---------- */
.page-header.page-header-normal {
    z-index: 300;
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .45);
}
div#main-navigation-inner {
    background: var(--ttd-green);
    background: linear-gradient(180deg, var(--ttd-green) 0%, var(--ttd-green-dark) 100%);
    padding: 10px 0;
    font-family: var(--ttd-font);
}
#main-navigation-inner .relative-container {
    display: flex;
    align-items: center;
    gap: 16px;
}
#main-navigation-inner .relative-container:before,
#main-navigation-inner .relative-container:after { display: none; }
#main-navigation-inner .pull-left { float: none !important; flex: 0 0 auto; }
#main-navigation-inner .centered-columns { display: flex; align-items: center; gap: 14px; }
#main-navigation-inner .centered-column { display: block; }
img.page-logo {
    width: 104px;
    height: auto;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* Slogan: was fixed + rotated over the page, now sits beside the logo */
.text-box {
    position: static;
    transform: none;
    text-align: left;
    line-height: 1.15;
}
.text-box .site-name {
    font-family: var(--ttd-script);
    color: var(--ttd-yellow) !important;
    font-size: 22px;
    margin: 0 0 2px;
}
.text-box .site-name-info {
    font-family: var(--ttd-font);
    color: rgba(255, 255, 255, .85) !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    margin: 0;
}

/* Desktop nav: pill links */
nav#main-navigation {
    float: none;
    margin-left: auto;
    padding: 0;
    font-size: 14px;
}
#main-navigation > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
#main-navigation > ul > li:after,
#main-navigation > ul > li a:after { display: none !important; }
nav#main-navigation li a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-family: var(--ttd-font);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
nav#main-navigation li a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
nav#main-navigation li.active > a { background: rgba(255, 255, 255, .18); color: var(--ttd-yellow); }
nav#main-navigation li a[href*="online.twicethedealpizza"] {
    background: var(--ttd-yellow);
    color: var(--ttd-ink);
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .4);
}
nav#main-navigation li a[href*="online.twicethedealpizza"]:hover { background: #fff; transform: translateY(-1px); }

/* The template's "slide-in fixed header after 800px" fights the sticky header; keep it static. */
#main-navigation-container.fixed-pos { position: relative; transform: none; }
#main-navigation-container.fixed-pos #main-navigation-inner,
#main-navigation-container.fixed-pos.active #main-navigation-inner {
    transform: none;
    opacity: 1;
    padding: 10px 0;
    background: linear-gradient(180deg, var(--ttd-green) 0%, var(--ttd-green-dark) 100%);
}
#main-navigation-placeholder,
#main-navigation-placeholder.active { display: none !important; }

#main-navigation-button {
    order: 3;
    margin-left: auto;
    float: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--ttd-yellow);
    color: var(--ttd-ink) !important;
    font-size: 22px;
    line-height: 46px;
    text-align: center;
    top: 0 !important;
}

/* Tablet / mobile nav panel (template switches at 1249px) */
@media (max-width: 1249px) {
    nav#main-navigation,
    nav#main-navigation.active {
        position: absolute;
        top: calc(100% + 12px);
        bottom: auto !important;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        background: var(--ttd-green-deep);
        border: 0;
        border-radius: 18px;
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
        transform: translateY(-8px);
    }
    nav#main-navigation.active { transform: translateY(0); }
    #main-navigation > ul { display: block; }
    nav#main-navigation li a { padding: 12px 16px; border-radius: 12px; text-align: left; font-size: 15px; }
    nav#main-navigation li a[href*="online.twicethedealpizza"] { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 600px) {
    img.page-logo { width: 88px; }
    div#main-navigation-inner { padding: 8px 0; }
}

/* ---------- Hero banner slider ----------
   Banners come in slightly different sizes (desktop ~1200x594 / 1600x629,
   mobile 350x500 / 600x1000). Each slide gets a fixed frame so the slider
   never jumps in height, and images are "contained" so no price/date text is
   ever cropped. Upload new banners at 1200x594 (desktop) and 350x500
   (mobile) - or the same ratios, larger - for an edge-to-edge fit. */
.hero { padding: 24px 16px 0; }
.hero #product-slider {
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ttd-shadow);
    background: var(--ttd-green-deep);
}
#product-slider .offer {
    position: relative;
    aspect-ratio: 1200 / 594;
    background: var(--ttd-green-deep);
    overflow: hidden;
}
/* No "display" here: siteupdate.css decides which of .xl/.xs/video shows per breakpoint */
#product-slider .offer > img,
#product-slider .offer > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
#product-slider.owl-carousel .owl-item img { height: 100%; }

/* Arrows: clean round buttons */
.hero .owl-carousel.owl-navigation-box .owl-prev,
.hero .owl-carousel.owl-navigation-box .owl-next {
    width: 46px;
    height: 46px;
    margin-top: -23px;
    line-height: 46px;
    font-size: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    opacity: 0;
}
.hero .owl-carousel.owl-navigation-box .owl-prev { left: 16px !important; }
.hero .owl-carousel.owl-navigation-box .owl-next { right: 16px !important; }
.hero .owl-carousel.owl-navigation-box .owl-prev:after,
.hero .owl-carousel.owl-navigation-box .owl-next:after { display: none; }
.hero .owl-carousel.owl-navigation-box .owl-prev:hover,
.hero .owl-carousel.owl-navigation-box .owl-next:hover { background: var(--ttd-yellow); }
.hero #product-slider:hover .owl-prev,
.hero #product-slider:hover .owl-next { opacity: 1; }
@media (hover: none) {
    .hero .owl-carousel.owl-navigation-box .owl-prev,
    .hero .owl-carousel.owl-navigation-box .owl-next { opacity: .85; }
}

/* Dots: small pills at the bottom of the banner */
.hero #product-slider .owl-dots {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    pointer-events: none;
}
.hero #product-slider .owl-dot {
    width: 8px !important;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    pointer-events: auto;
    transition: width .3s ease, background-color .3s ease;
}
.hero #product-slider .owl-dot span { display: none; }
.hero #product-slider .owl-dot.active { width: 26px !important; background: var(--ttd-yellow); }

@media (max-width: 600px) {
    .hero { padding: 12px 12px 0; }
    .hero #product-slider { border-radius: 18px; }
    #product-slider .offer { aspect-ratio: 7 / 10; }
    .hero .owl-carousel.owl-navigation-box .owl-prev,
    .hero .owl-carousel.owl-navigation-box .owl-next { width: 38px; height: 38px; margin-top: -19px; line-height: 38px; font-size: 22px; }
    .hero .owl-carousel.owl-navigation-box .owl-prev { left: 10px !important; }
    .hero .owl-carousel.owl-navigation-box .owl-next { right: 10px !important; }
}

/* ---------- Home: action cards ---------- */
.home-section { padding: 40px 0 0; }
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--ttd-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ttd-shadow);
    color: var(--ttd-ink);
    text-decoration: none !important;
}
.cta-card img { display: block; width: 100%; aspect-ratio: 570 / 220; object-fit: cover; }
.cta-card .cta-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; flex: 1; }
a.cta-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(20, 40, 18, .45); color: var(--ttd-ink); }
.cta-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ttd-green);
}
.cta-title { display: block; font-size: 22px; font-weight: 700; line-height: 1.25; margin: 2px 0 0; color: inherit; }
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ttd-green);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
a.cta-card:hover .btn-pill { background: var(--ttd-yellow); color: var(--ttd-ink); }

.cta-app {
    background: radial-gradient(circle at 85% 15%, rgba(245, 208, 16, .28) 0, rgba(245, 208, 16, 0) 45%),
                linear-gradient(135deg, var(--ttd-green) 0%, var(--ttd-green-deep) 100%);
    color: #fff;
    justify-content: center;
    padding: 28px;
}
.cta-app .cta-eyebrow { color: var(--ttd-yellow); }
.cta-app .cta-title { font-size: 28px; color: #fff; }
.cta-app p { margin: 8px 0 18px; color: rgba(255, 255, 255, .85); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges a { display: block; border-radius: 10px; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { display: block; height: 48px; width: auto; }

/* ---------- Home: menu categories ---------- */
.section-head { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.section-head .eyebrow {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(65, 118, 62, .12);
    color: var(--ttd-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.section-head h1,
.section-head h2 { font-size: 34px; font-weight: 800; margin: 10px 0 0; letter-spacing: -.01em; }
.section-head p { margin: 8px 0 0; color: var(--ttd-muted); font-size: 16px; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 56px;
}
.menu-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--ttd-radius);
    overflow: hidden;
    background: var(--ttd-green-deep);
    box-shadow: var(--ttd-shadow);
    text-decoration: none !important;
}
.menu-card.featured { grid-column: span 2; aspect-ratio: auto; }
.menu-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.menu-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .75) 100%);
}
.menu-card-label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.menu-card-label i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ttd-yellow);
    color: var(--ttd-ink);
    font-size: 14px;
    line-height: 34px;
    text-align: center;
    text-shadow: none;
    transition: transform .3s ease;
}
.menu-card:hover img { transform: scale(1.07); }
.menu-card:hover .menu-card-label i { transform: translateX(4px); }

@media (max-width: 991px) {
    .cta-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .menu-card.featured { aspect-ratio: 2 / 1; }
}
@media (max-width: 600px) {
    .home-section { padding-top: 24px; }
    .cta-card .cta-body { flex-direction: column; align-items: flex-start; }
    .cta-app { padding: 22px; }
    .cta-app .cta-title { font-size: 24px; }
    .store-badges img { height: 42px; }
    .section-head h1,
    .section-head h2 { font-size: 26px; }
    .menu-card-label { left: 12px; right: 12px; bottom: 12px; font-size: 15px; }
    .menu-card-label i { width: 28px; height: 28px; line-height: 28px; font-size: 12px; }
}

/* ---------- Footer ---------- */
.page-footer {
    background: var(--ttd-green-deep);
    color: rgba(255, 255, 255, .82);
    padding-top: 16px;
    border-radius: 28px 28px 0 0;
}
footer.page-footer h2.footer-heading {
    font-family: var(--ttd-font);
    color: var(--ttd-yellow);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 32px 0 14px;
}
.page-footer a { color: #fff; }
.page-footer a:hover { color: var(--ttd-yellow); }
.page-footer address { font-style: normal; line-height: 1.8; }
.page-footer .opening-hours-wrapper em { font-style: normal; }
.page-footer .opening-hours-wrapper {
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 12px 18px;
}
.footer-socials { margin-top: 18px; }
.footer-socials a { display: inline-block; margin: 10px 8px 0 0; }
.footer-socials i,
.footer-socials i.fa.fa-4x.fa-facebook,
.footer-socials i.fa.fa-4x.fa-instagram {
    font-size: 20px !important;
    width: 44px;
    height: 44px;
    line-height: 44px;
    padding: 0;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    transition: background-color .2s ease, color .2s ease;
}
.footer-socials a:hover i { background: var(--ttd-yellow); color: var(--ttd-ink) !important; }
.page-footer .page-logo { box-shadow: none; }
.page-footer .logo-footer-text { font-family: var(--ttd-script); color: #fff; font-size: 22px; margin: 14px 0 0; }
.page-footer .logo-footer-detail { color: rgba(255, 255, 255, .7); }
.page-footer .button-yellow,
.page-footer .button-yellow.button-heavy {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--ttd-yellow);
    color: var(--ttd-ink) !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .03em;
}
.page-footer .button-yellow:hover { background: #fff; }
.site-info {
    margin-top: 36px;
    background: rgba(0, 0, 0, .22);
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    padding: 16px 0;
}
.site-info a { color: var(--ttd-yellow); }
#scroll-top { border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
