/* FLAGMAN FOOD — Static Site Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #4F8C55;
  --green-dark: #3d6e43;
  --gray-bg: #B8C0CC;
  --dark: #0d141a;
  --white: #ffffff;
  --black: #000000;
  --bar-bg: #2A2A2A;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Roboto', 'Calibri', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Bar */
.sticky-bar {
  background: var(--bar-bg);
  color: var(--white);
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.logo-img { height: 40px; width: auto; }
.logo-text { font-size: 20px; font-weight: 600; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav { display: flex; gap: 4px; }

.nav-link {
  text-decoration: none;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(79, 140, 85, 0.1);
  color: var(--green);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 24px 0;
  text-align: center;
}

.hero h1 { font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.hero-sub { font-size: 15px; opacity: 0.65; margin-bottom: 0; }

.hero-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.hero-row h1 { text-align: left; }

/* Hero Video */
.hero-video {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-video__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
}

.hero-video__content h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-video__content p {
  font-size: 22px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-video__content .btn-primary {
  font-size: 18px;
  padding: 16px 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--green);
}

.btn-primary:hover { background: #f0f0f0; }

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* About Section */
.about-section { padding: 24px 0; background: #fff; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 { font-size: 32px; margin-bottom: 16px; color: var(--green); }
.about-text p { margin-bottom: 24px; font-size: 17px; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

/* Categories Grid */
.categories-section { padding: 60px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-card h3 {
  padding: 12px 16px 4px;
  font-size: 16px;
  font-weight: 500;
}

.category-card p {
  padding: 0 16px 12px;
  font-size: 13px;
  color: #666;
}

/* Category Hero */
.category-hero {
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  position: relative;
  color: var(--white);
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.category-hero .container {
  position: relative;
  z-index: 1;
}

.category.hero h1 { font-size: 32px; }
.category-hero p { font-size: 16px; opacity: 0.85; margin-top: 8px; }

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--green);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Products Grid */
.products-section { padding: 40px 0 80px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-2px); }

.product-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info { padding: 14px 16px; }

.product-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 40px;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
}

.product-price.price-na {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.product-weight {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* Catalog Hero */
.catalog-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.catalog.hero h1 { font-size: 32px; }
.catalog-hero p { margin-top: 12px; font-size: 17px; opacity: 0.9; }

/* Info Pages */
.info-page {
  padding: 40px 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.info-page h1 { font-size: 32px; margin-bottom: 24px; color: var(--green); }
.info-page h2 { font-size: 24px; margin: 32px 0 16px; }
.info-page p { margin-bottom: 16px; font-size: 16px; }
.info-page ul { padding-left: 24px; margin-bottom: 16px; }
.info-page li { margin-bottom: 8px; }
.info-page a { color: var(--green); }

/* Footer */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 12px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 2fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 12px;
}

.footer-logo { height: 90px; filter: brightness(0) invert(1); }
.footer-brand { font-size: 20px; font-weight: 600; }

.footer-col h4 { margin-bottom: 12px; font-size: 16px; }
.footer-col p, .footer-col a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-video { height: 60vh; min-height: 350px; }
  .hero-video__content { padding: 0 20px; }
  .hero-video__content h1 { font-size: 36px; }
  .hero-video__content p { font-size: 16px; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
