/* style.css – Hasses Brännvin Ⓐ Style */

/* =========================================================
   GLOBALA VARIABLER
   ========================================================= */
:root{
  --container-width: 1100px;

  --bg: #F7E9D0;                 /* sidans bakgrund */
  --card-bg: #e6d2a9;            /* kort-bakgrund (samma som hero-kort) */
  --card-border: rgba(0,0,0,0.18);

  --shadow-card: 0 10px 25px rgba(0,0,0,0.2);
  --shadow-logo: drop-shadow(0 8px 12px rgba(0,0,0,0.3));

  /* NAV (menyrad under header) */
  --nav-height: 46px;
  --nav-bg: #ECC160;             /* samma som kort */
  --nav-ink: #222;
  --nav-hover: rgba(0,0,0,0.08);

}

/* =========================================================
   RESET & GRUND
   ========================================================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Consolas', 'Courier New', monospace;
  background: var(--bg);
  min-height: 100vh;
  color: #333;
}

/* =========================================================
   LAYOUT / WRAPPER
   - .page styr bredden för både header och card
   ========================================================= */
.page{
  max-width: var(--container-width);
  margin: 20px auto 40px;
  padding: 0 20px;

  /* skydd så fixed footer inte täcker innehåll */
  padding-bottom: 70px;
}

/* =========================================================
   HEADER – SAMMA BREDD SOM CARD + BILD FYLLER
   ========================================================= */
.topbar{
  margin: 0 0 14px 0;
}


/* själva “kortet” runt bannern */
.topbar-inner{
  height: 250px;

  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px 10px 0 0; /* topp rundad, botten rak (meny tar över) */
  box-shadow: var(--shadow-card);
  border-bottom: 0; /* så header + meny ser ut som ett block */

  background-image: url("image/toplogga.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;  /* ✅ fyller hela headern */
}

/* =========================================================
   MENY – UNDER HEADERBILD
   ========================================================= */
#category-nav{
  height: var(--nav-height);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 0.8rem;

  background: var(--nav-bg);
  border: 1px solid var(--card-border);
  border-top: 1px solid rgba(0,0,0,0.10); /* liten linje mellan bild & meny */
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-card);
}

/* Menylänkar */
#category-nav a{
  text-decoration: none;
  color: var(--nav-ink);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  transition: background-color 0.15s ease, transform 0.08s ease;
}
#category-nav a:hover{
  background: var(--nav-hover);
  transform: translateY(-1px);
}
#category-nav a:active{
  transform: translateY(0);
}


/* =========================================================
   CARD
   ========================================================= */
.card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-card);
}

/* =========================================================
   HERO SECTION (logga vänster / text höger)
   ========================================================= */
.hero-section{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
}

.hero-left{
  display: flex;
  align-items: flex-start;
  padding-top: 6px; /* liten justering så det linjerar snyggt */
}

.hero-logo{
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  filter: var(--shadow-logo);
}

.hero-right{
  display: flex;
  flex-direction: column;
}

.hero-right h1{
  margin-top: 0;
  margin-bottom: 0px;
  font-size: 38px;
  letter-spacing: 1px;
}

.hero-right p{
  margin-top: 0;
  line-height: 1.55;
}

/* “proffsig” typografi utan h2/h3 runt p */
.hero-right .lead{
  font-size: 17px;
    margin-bottom: 14px;
}

.hero-right .ingredients{
  font-size: 19px;
  font-weight: bold;
  margin: 0px 0;
}

/* =========================================================
   HERO-TILES (start: två klickbara bilder i mitten)
   Används på index.html
   ========================================================= */
.hero-tiles{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-tiles .hero-item{
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-tiles .hero-logo{
  width: 320px;
  max-width: 100%;
  height: auto;
  filter: var(--shadow-logo);
  transition: transform 0.15s ease;
}
.hero-tiles a:hover .hero-logo{
  transform: scale(1.03);
}

/* =========================================================
   FOOTER – FAST NER
   ========================================================= */
.footerbar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #e6d2a9;
  border-top: 1px solid rgba(0,0,0,0.2);
}

.footerbar-inner{
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  padding: 10px;
}

/* =========================================================
   RESPONSIVT
   ========================================================= */
@media (max-width: 768px){

  #category-nav{
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 0.4rem;
  }


  .topbar-inner{
    height: 115px;
  }

  .hero-section{
    grid-template-columns: 1fr;
  }

  .hero-left{
    justify-content: center;
    padding-top: 0;
    margin-bottom: 8px;
  }

  .hero-logo{
    width: 220px;
    margin-bottom: 10px;
  }

  .hero-right h1{
    font-size: 30px;
    text-align: center;
  }

  .hero-right .ingredients{
    text-align: center;
  }
}