@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Cormorant+Garamond:wght@500;600;700&family=Lato:wght@300;400;600;700&display=swap');

:root{
  --cream:#fdf6e3;
  --ivory:#f8f4e8;
  --paper:#fffdf7;

  --forest:#1a5c2a;
  --forest-2:#2d7a3e;
  --forest-dark:#0d2f16;

  --gold:#d4af37;
  --gold-2:#c9a84c;
  --gold-light:#f3e2a9;

  --wine:#8b1a1a;
  --wine-2:#6e1414;

  --ink:#2b2318;
  --muted:#6f6252;
  --stroke: rgba(201,168,76,.4);

  --bg-warm:
    radial-gradient(1200px 620px at 10% -12%, rgba(212,175,55,.14), transparent 60%),
    radial-gradient(1000px 620px at 112% 112%, rgba(26,92,42,.12), transparent 60%),
    linear-gradient(160deg, #fdf6e3 0%, #f8f4e8 45%, #f3ead2 100%);

  --card-bg: linear-gradient(180deg, #fffdf7 0%, #fdf6e3 100%);
  --shadow-sm: 0 6px 18px rgba(26,92,42,.14);
  --shadow-lg: 0 22px 48px rgba(13,47,22,.22);
  --shadow-gold: 0 0 0 1px rgba(212,175,55,.5), 0 10px 26px rgba(212,175,55,.25);

  --radius: 14px;
  --radius-sm: 10px;
  --t1:.25s;
  --t2:.5s;
}

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Italian flag animated strip (top of every page) */
.italia-strip{
  width:100%;
  height:6px;
  background: repeating-linear-gradient(90deg,
    #009246 0 40px, #ffffff 40px 80px, #ce2b37 80px 120px);
  background-size:120px 100%;
  animation: italiaFlow 6s linear infinite;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
@keyframes italiaFlow{
  from{ background-position: 0 0; }
  to{ background-position: -120px 0; }
}
@media (prefers-reduced-motion: reduce){ .italia-strip{ animation:none; } }

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg-warm);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
    padding: 20px;
}

#header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    animation: fadeIn .8s ease both, moveUp .8s ease both;
}

#logo {
    max-width: 250px;
    margin: 0 auto 10px auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(13,47,22,.3));
}

/* Nav cart icon + badge */
.nav-cart-link{
    position:absolute;
    top:0;
    right:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:50%;
    background: rgba(26,92,42,.08);
    border:1px solid rgba(212,175,55,.5);
    text-decoration:none;
    font-size:22px;
    z-index:5;
    transition: transform var(--t1) ease, background var(--t1) ease, box-shadow var(--t1) ease;
}
.nav-cart-link:hover{
    transform: translateY(-2px) scale(1.06);
    background: rgba(26,92,42,.16);
    box-shadow: 0 8px 18px rgba(13,47,22,.18);
}
.nav-cart-link:active{ transform: translateY(0) scale(.94); }
.nav-cart-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:18px;
    height:18px;
    padding:0 4px;
    border-radius:9px;
    background: linear-gradient(135deg, var(--wine), var(--wine-2));
    color: var(--gold-light);
    font-size:11px;
    font-weight:800;
    line-height:18px;
    text-align:center;
    border:1px solid var(--gold-2);
    display:none;
    box-shadow: 0 2px 6px rgba(13,47,22,.3);
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--forest-dark);
    margin-bottom: 10px;
    letter-spacing: .02em;
}

h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--forest);
}

#name-input {
    margin-bottom: 20px;
}

input[type="text"]#customerName {
    width: calc(100% - 22px);
    padding: 12px;
    border: 2px solid var(--stroke);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--paper);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color var(--t1) ease, box-shadow var(--t1) ease;
}

#orderDescription {
    width: calc(100% - 22px);
    padding: 12px;
    border: 2px solid var(--stroke);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--paper);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color var(--t1) ease, box-shadow var(--t1) ease;
}

#tableNumber {
    width: calc(100% - 22px);
    padding: 12px;
    border: 2px solid var(--stroke);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--paper);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color var(--t1) ease, box-shadow var(--t1) ease;
}

input[type="text"]:focus{
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,175,55,.2);
}

#menu {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    animation: fadeIn .7s ease both, moveUp .7s ease both;
}

#menu-items div {
    background: var(--paper);
    padding: 15px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border-color .25s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

#menu-items div:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

#cart {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
    animation: fadeIn .7s ease both, moveUp .7s ease both;
}

#cart-items li {
    border-bottom: 1px solid var(--stroke);
    padding: 10px 0;
    list-style-type: none;
    transition: background-color var(--t1) ease;
    animation: itemIn .4s ease both;
}

#cart-items li:hover{
    background-color: rgba(212,175,55,.08);
}

@keyframes itemIn{
    from{ opacity:0; transform: translateX(-10px); }
    to{ opacity:1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce){ #cart-items li{ animation:none; } }

#menu-items {
    display: none; /* Hides the menu items but keeps them functional */
}

button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--forest), var(--forest-2));
    color: var(--gold-light);
    border: 1px solid var(--gold-2);
    border-radius: var(--radius-sm);
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: var(--shadow-gold);
}

button:active{
    transform: translateY(0) scale(.99);
}

#trackOrderButton {
    display: block;
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: var(--forest-dark);
    border: 2px solid var(--gold-2);
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter .3s ease;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
}

#trackOrderButton:hover {
    filter: brightness(1.05);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

#trackOrderButton:active {
    transform: scale(0.97);
}

footer {
    text-align: center;
    padding: 14px 5px;
    background: linear-gradient(120deg, #08170c 0%, #0d2f16 22%, #1a5c2a 55%, #2d7a3e 78%, #0d2f16 100%);
    color: var(--gold-light);
    border-top: 2px solid var(--gold-2);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    letter-spacing: .03em;
}

/* Small "site by" credit line inside the footer */
.site-credit{
    margin-top:4px;
    font-family:'Cormorant Garamond', serif;
    font-style:italic;
    font-size:.75em;
    letter-spacing:.03em;
    opacity:.8;
}
.site-credit a{
    color: var(--gold-light);
    text-decoration:none;
    border-bottom:1px solid rgba(243,226,169,.35);
    transition: opacity var(--t1) ease, border-color var(--t1) ease;
}
.site-credit a:hover{
    opacity:1;
    border-color: rgba(243,226,169,.85);
}

#credits {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
    background: linear-gradient(90deg, rgba(26,92,42,.12), rgba(255,255,255,.5), rgba(212,175,55,.16));
    color: var(--ink);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    animation: fadeIn 1.2s ease-in-out, moveUp 1.2s ease-in-out;
}

#credits a {
    color: var(--forest);
    text-decoration: none;
    font-weight: bold;
    transition: filter 0.3s ease, transform 0.3s ease;
}

#credits a:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

/* Add this to the existing CSS */
.noticeable-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: var(--forest-dark);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    font-size: 22px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter .3s ease;
    margin-top: 20px;
    box-shadow: var(--shadow-lg);
}

.noticeable-button:hover {
    filter: brightness(1.06);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.noticeable-button:active {
    transform: scale(0.97);
}

.green-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--forest-dark), var(--forest), var(--forest-2));
    color: var(--gold-light);
    border: 2px solid var(--gold-2);
    border-radius: var(--radius);
    font-size: 22px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter .3s ease;
    margin-top: 20px;
    box-shadow: var(--shadow-lg);
}

.green-button:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.green-button:active {
    transform: scale(0.97);
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: var(--paper);
    border: 2px solid var(--stroke);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow .3s;
}

.form-control:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,175,55,.2);
}

.hidden {
    display: none;
}

@keyframes fadeIn{ from{ opacity:0 } to{ opacity:1 } }
@keyframes moveUp{ from{ transform: translateY(20px) } to{ transform: translateY(0) } }

/* Tablets */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #menu, #cart {
        width: 100%;
    }

    #menu-items div, #cart-items li {
        padding: 15px;
    }

    button {
        padding: 15px;
        font-size: 16px;
    }

    #cart-items button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .clear-order-button {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Phones */
@media (max-width: 480px) {
    #header {
        flex-direction: column;
        align-items: center;
    }

    #logo {
        max-width: 200px;
    }

    h1 {
        font-size: 24px;
    }

    #menu-items div, #cart-items li {
        padding: 10px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    #cart-items button {
        padding: 6px 8px;
        font-size: 12px;
    }

    .clear-order-button {
        padding: 10px;
        font-size: 14px;
    }
}
