/* assets/css/style.css */
/* -------------------------------------------------------------
   Banik Bakery Ltd. – Final Professional Design
   Old coloring (blue + amber) + Modern, mobile-friendly layout
-------------------------------------------------------------- */

:root {
  --bg: #f1f5f9;
  /* light slate background */
  --section-bg: #e2e8f0;
  /* slightly darker background */
  --card: #ffffff;
  --nav: #1e293b;
  /* navy header/footer */
  --text: #1e293b;
  /* dark slate text */
  --muted: #64748b;
  /* gray text */
  --brand: #1d4ed8;
  /* blue-700 */
  --brand-2: #3b82f6;
  /* blue-500 */
  --accent: #fbbf24;
  /* amber-400 */
  --border: #cbd5e1;
  /* border gray */
  --white: #ffffff;
}

/* --------------------------------------------------------------
   Base
-------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* --------------------------------------------------------------
   Navbar
-------------------------------------------------------------- */
nav {
  background: var(--nav);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.logo-img {
  height: 42px;
  width: auto;
}

.menu {
  display: flex;
  gap: 1.5rem;
}

.menu a {
  color: var(--white);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

.menu a:hover,
.menu a.active {
  background: var(--brand-2);
  border-radius: 6px;
  color: var(--white);
}

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  color: var(--white);
  cursor: pointer;
}

/* Mobile menu */
@media (max-width: 820px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--nav);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    border-top: 1px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 1rem;
  }

  .menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-block;
  }
}

/* --------------------------------------------------------------
   Hero Section
-------------------------------------------------------------- */
.hero {
  position: relative;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 65ch;
  color: #f8fafc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero .cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------
   Buttons
-------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline {
  /* background: transparent; */
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--brand);
}

/* --------------------------------------------------------------
   Sections / Cards / Products
-------------------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--section-bg);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f1f5f9;
}

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
footer {
  background: var(--nav);
  color: var(--white);
  padding: 2.5rem 0;
  border-top: 2px solid var(--accent);
  text-align: center;
}

footer p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: #f8fafc;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(251, 191, 36, 0.1);
}

/* --------------------------------------------------------------
   Forms
-------------------------------------------------------------- */
form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--text);
  transition: 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

label {
  font-weight: 600;
  color: var(--text);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}




.btn,
.btn:hover,
.btn-outline,
.btn-outline:hover {
  text-decoration: none !important;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Add left spacing only for the text at the top of the products page */
main.section.container>h1,
main.section.container>p {
  margin-left: 1rem;
  /* adjust the value to your liking (e.g., 1.5rem or 2rem) */
}