:root{
  --bg0:#050814;
  --bg1:#070b1a;

  --panel: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);

  --text:#eaf0ff;
  --muted: rgba(234,240,255,.70);

  --yellow:#f3c400;
  --red:#d1162c;

  --shadow: 0 18px 45px rgba(0,0,0,.40);
  --radius: 18px;

  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

  /* 0 = fully visible background, 1 = fully faded */
  --heroFade: 0;
}

/* RESET */
*{ box-sizing:border-box; }
html,body{ height:100%; }

/*  Prevent horizontal scroll on phones */
html, body{
  overflow-x: hidden;
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 450px at 25% 10%, rgba(243,196,0,.10), transparent 55%),
    radial-gradient(900px 520px at 70% 20%, rgba(209,22,44,.08), transparent 60%),
    linear-gradient(180deg,var(--bg0),var(--bg1));
}

/*  Make images never overflow */
img{ max-width:100%; height:auto; }

/*  Helps prevent long links/text from forcing width */
a, p, h1, h2, h3{
  overflow-wrap: anywhere;
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:18px;
}

/*  TOP BAR*/
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(5,8,20,.65);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0; /*  allow flex to shrink on small screens */
}

.brand__logo{
  width:46px;
  height:46px;
  border-radius:50%;
  flex:0 0 auto;
}

.brand__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.45));
}

.brand__text{
  min-width:0;
}

.brand__name{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand__tag{
  font-size:12px;
  color:rgba(243,196,0,.85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* NAV */
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap; /*  avoid overflow on mobile */
  justify-content:flex-end;
}

.nav a{
  color:rgba(234,240,255,.9);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
}

.nav a:hover{
  background:rgba(255,255,255,.06);
  border-color:var(--line);
}

.nav a.active{
  background:rgba(243,196,0,.12);
  border-color:rgba(243,196,0,.28);
}

/* LOGO STRIP */
.logoStrip{
  display:flex;
  justify-content:center;
  padding:18px 18px 0;
}

.logoStrip__img{
  width:132px;
  height:132px;
  object-fit:contain;
  filter:drop-shadow(0 18px 38px rgba(0,0,0,.50));
}

/*  HERO  */
.hero{
  position:relative;
  min-height:78vh;
  padding:26px 0 16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* Background image */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("./assets/Cheese_pizza_shop.jpg") center/cover no-repeat;
  z-index:0;

  background-attachment: fixed;
  transform: scale(1.02);

  /* fade as you scroll */
  opacity: calc(1 - var(--heroFade));
  filter: brightness(1.10) saturate(1.05);
  transition: opacity .18s linear;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 30% 10%, rgba(120,160,255,.26), transparent 62%),
    linear-gradient(180deg, rgba(5,10,28,.52), rgba(7,15,42,.78));
  z-index:1;
}

/* Hero content above overlay */
.heroGrid{
  position:relative;
  z-index:2;
  width:100%;
}

.headline{
  font-size:56px;
  font-weight:900;
  line-height:1.05;
  margin:0;
  text-shadow: 0 14px 35px rgba(0,0,0,.45);
}

.accent{
  color:var(--yellow);
  text-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.subtext{
  margin:14px 0 18px;
  max-width:64ch;
  color:rgba(234,240,255,.82);
  text-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/*  CONTROLS */
.controls{
  max-width:560px;
  width:100%;
}

.label{
  font-size:12px;
  font-weight:700;
  color: rgba(234,240,255,.92);
  text-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.selectRow{
  display:flex;
  gap:10px;
  width:100%;
}

.select{
  width:100%;
  padding:13px 14px;
  border-radius:999px;
  border:1px solid rgba(243,196,0,.35);
  background: rgba(4,10,28,.72);
  color: rgba(243,196,0,.95);
  outline:none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 18px 40px rgba(0,0,0,.25);
  min-width:0;
}

.select option{
  background: #06102c;
  color: rgba(243,196,0,.95);
}

.select option:checked,
.select option:hover{
  background: #0b1a44;
  color: rgba(243,196,0,1);
}

.select:focus{
  border-color: rgba(243,196,0,.75);
  box-shadow:
    0 0 0 4px rgba(243,196,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.btn{
  padding:12px 16px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  border:none;
  flex:0 0 auto;
}

.btn--ghost{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  color:rgba(234,240,255,.95);
}
.btn--ghost:hover{
  background:rgba(255,255,255,.14);
}

/*  BRANCH CARDS  */
.sectionTitle{
  margin:28px 0 14px;
  font-size:22px;
  font-weight:900;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr)); /*  prevent overflow */
  gap:14px;
}

.card{
  padding:18px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  cursor:pointer;
  min-width:0; /* prevent overflow */
}

.card--active{
  border-color:rgba(243,196,0,.8);
}

.card__title{
  font-weight:900;
}

.card__meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:14px;
}

.btnOrder{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:var(--text);
  text-decoration:none;
}

/*  MAP  */
.mapWrap{
  margin-top:18px;
}

.mapCard{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
}

#map{
  height:320px;
  width:100%;
}

.mapHint{
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
  background:rgba(0,0,0,.12);
}

/* FOOTER */
.footer{
  margin-top:18px;
  padding:18px 0 8px;
  font-size:13px;
  color:rgba(234,240,255,.70);
  border-top:1px solid rgba(255,255,255,.08);
}

/*  RESPONSIVE */
@media (max-width:980px){
  .cards{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .headline{ font-size:44px; }
}

/*  Phone adjustments (fix “too wide”) */
@media (max-width:560px){
  .container{ padding:12px; }

  .topbar__inner{
    padding:12px 12px;
    gap:10px;
  }

  .brand__logo{ width:40px; height:40px; }

  .logoStrip{ padding:14px 12px 0; }
  .logoStrip__img{ width:104px; height:104px; }

  .hero{
    min-height:auto;
    padding:18px 0 12px;
  }

  .headline{
    font-size:32px;
    line-height:1.12;
  }

  .subtext{
    font-size:14px;
    margin:12px 0 14px;
  }

  .selectRow{
    flex-direction:column;
    gap:10px;
  }

  .select,
  .btn{
    width:100%;
  }

  .btn{ padding:12px 14px; }

  .cards{ grid-template-columns:1fr; }

  #map{
    height:220px;
  }

  /* Mobile Safari often ignores background-attachment: fixed; keep it stable */
  .hero::before{ background-attachment: scroll; }
}

/*  Ultra-small phones */
@media (max-width:380px){
  .headline{ font-size:28px; }
  .nav a{ padding:7px 10px; font-size:13px; }
}
