/* =========================
   Theme variables (your palette)
   ========================= */
   :root{
    --fh-bg: #FFF6EF;          /* page background */
    --fh-bg-soft: #FFF0E3;     /* soft section background */
    --fh-accent: #FFA55D;      /* brand (navbar, primary btn) */
    --fh-accent-2: #8E573B;    /* accent hover */
    --fh-highlight: #FFDF88;   /* highlight/badges */
    --fh-success: #ACC572;     /* success */
    --fh-text: #2c2c2c;        /* base text */
    --fh-muted: #6c757d;       /* muted text */
    --fh-card: #ffffff;        /* cards */
    --fh-border: #e5e7eb;      /* borders */
  }
  
  /* Typography & background */
  html, body {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--fh-text);
    background: linear-gradient(180deg, var(--fh-bg) 0%, #FFECDD 100%);
  }
  
  /* Sticky footer layout */
  .site{ min-height:100vh; display:flex; flex-direction:column; }
  .site-content{ flex:1 0 auto; }
  .site-footer {
    background: var(--fh-accent);
    color: #fff;
    font-size: 0.9rem;
  }
  .site-footer a { color: #fff; }
  .site-footer a:hover { text-decoration: underline; }
  
  /* Containers / sections helpers */
  .container-narrow { max-width: 920px; margin: 0 auto; }
  .page-section { padding: 16px; }
  .qty-input { width: 80px; }
  
  /* Navbar */
  .navbar{
    height: 80px;
    background-color: var(--fh-accent);
  }
  .navbar .navbar-brand img{
    height: 60px;
    width: auto;
    object-fit: contain;
  }
  /* Navbar links */
  .navbar .nav-link { color: #fff; }
  .navbar .nav-link.active,
  .navbar .nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--fh-highlight) !important;
  }
  
  /* Links */
  a { text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  /* Buttons */
  .btn-primary{ background-color:var(--fh-accent); border-color:var(--fh-accent); }
  .btn-primary:hover{ background-color:var(--fh-accent-2); border-color:var(--fh-accent-2); }
  .btn-success{ background-color:var(--fh-success); border-color:var(--fh-success); }
  
  /* General cards */
  .card {
    border-radius: 12px;
    overflow: hidden;
  }
  .card-title { font-weight: 600; color: #A76545; }
  .price-tag { font-size: 1.1rem; font-weight: 700; color: var(--fh-accent); }
  
  /* Restaurant cover (list cards) */
  .restaurant-card-img {
    width: 100%;
    height: 220px;       /* fixed cover height */
    object-fit: cover;
  }
  
  /* ===== Hero (homepage) ===== */
  .hero{
    background: var(--fh-bg-soft);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    margin-bottom: 1.75rem;
  }
  @media (min-width: 768px){
    .hero{
      padding: 2.5rem 2rem;
      margin-bottom: 2rem;
    }
  }
  .hero-inner{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
  }
  @media (min-width: 992px){
    .hero-inner{ grid-template-columns: 1.15fr 0.85fr; }
  }
  .hero-title{
    font-size: clamp(2rem, 3.2vw + 1rem, 3rem);
    line-height: 1.15;
    margin: 0 0 .5rem 0;
  }
  .hero-subtitle{
    font-size: 1.125rem;
    color: var(--fh-muted);
    max-width: 58ch;
    margin-bottom: 1rem;
  }
  .hero-cta .btn{ margin-right: .5rem; margin-bottom: 10px; }
  .hero-illustration{ text-align: right; }
  .hero-illustration img{
    width: min(520px, 100%);
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }
  
  /* ===== Restaurant hero (detail page) ===== */
  .restaurant-hero .hero-img-wrap {
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--fh-bg-soft);
  }
  .restaurant-hero .hero-img-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
  }
  
  /* Sections spacing */
  .section-title{ margin: 0 0 .75rem 0; }
  .why{ margin-bottom: 2rem; }
  .home-restos{ margin-top: 1.5rem; }
  
  /* Cards balance */
  .card-text.small{ font-size: .95rem; }
  
  /* Header brand alignment fix on small screens */
  .navbar-brand img{ max-height: 48px; }
  
  /* Dish image (detail grid) */
  .dish-card .ratio { background: #f7f3ee; }
  .dish-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
  }
  
  /* Hover micro-interactions */
  .card .btn-success:hover{ filter: brightness(0.95); }
  .card:hover{ transform: translateY(-3px); transition: .15s ease; }
  
  /* Badges highlight */
  .badge-highlight{
    background-color: var(--fh-highlight);
    color: #000;
    font-weight: 600;
  }
  
  /* Pagination */
  .pagination .page-link{ color: var(--fh-accent); }
  .pagination .page-link:hover{ color:#fff; background:var(--fh-accent); border-color:var(--fh-accent); }
  .pagination .active .page-link{ background:var(--fh-accent); border-color:var(--fh-accent); }
  
  /* Forms small tweaks */
  .form-label{ font-weight: 600; }
  input::placeholder, textarea::placeholder{ color: #9aa3ac; }
  
  /* Form page layout (signup/login/profile/checkout) */
  .form-page{
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: 2rem 0;
  }
  .form-card{
    width: 100%;
    max-width: 560px;
  }
  .form-hint{ color: var(--fh-muted); font-size: .95rem; }
  
  /* Alerts brand-colored */
  .alert-success{ background:#ACC572; color:#fff; border-color:#ACC572; }
  .alert-danger{ background:#A76545; color:#fff; border-color:#A76545; }
  .alert-info{ background:#FFDF88; color:#5a3c2a; border-color:#FFDF88; }
  .alert-warning{ background:#FFA55D; color:#5a3c2a; border-color:#FFA55D; }
  
  /* Cart table/card polish */
  .cart-card { border: 0; }
  .table th, .table td { vertical-align: middle; }
  
  /* Responsive tweaks */
  @media (max-width: 575.98px){
    .navbar { height: 72px; }
    .restaurant-hero .hero-img-wrap img { height: 240px; }
  }
  @media (min-width: 1200px){
    .restaurant-hero {
      max-width: 920px;
      margin: 0 auto;
    }
  }
  
  /* Promo banner */
.promo-banner{
    background: var(--fh-accent-2);
    color: #fff;
    padding: .6rem 0;
  }
  .promo-banner .btn-outline-light{
    color:#fff;
    border-color:#fff;
  }
  .promo-banner .btn-outline-light:hover{
    background:#fff; color: var(--fh-accent-2);
  }
  
  /* Mobile navbar menu fix */
.navbar-collapse {
    background-color: var(--fh-accent); /* stesso colore della navbar */
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }
  
  .navbar-nav .nav-link {
    color: #fff; /* testo bianco */
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--fh-highlight); /* highlight giallo */
  }
  


  /* Order status badges */
  .created-badge     { background: #e7f1ff; color:#0b5ed7; }
  .preparing-badge   { background: #fff3cd; color:#a15c00; }
  .assigned-badge    { background: #e7f1ff; color:#0b5ed7; }
  .picked_up-badge   { background: #e2f0e7; color:#1e7e34; }
  .delivered-badge   { background: #d1f7d6; color:#146c43; }
  .cancelled-badge   { background: #fde2e2; color:#b02a37; }
  