/* ==========================================================================
   Tayyib Savanna Meats Limited — styles.css
   Mobile-first, no frameworks.
   ========================================================================== */

:root {
  --green: #1E3D2B;
  --green-dark: #16301F;
  --cream: #F5F1E6;
  --gold: #C8912E;
  --gold-dark: #A87823;
  --rust: #B5432A;
  --ink: #22271F;
  --white: #FFFFFF;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keep anchors clear of the sticky header */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--green);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--green);
}

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--green-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--green);
  color: var(--cream);
}

.btn-whatsapp {
  background-color: var(--green);
  color: var(--cream);
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: var(--gold);
  color: var(--green-dark);
}

.btn-whatsapp .icon {
  margin-right: 0.4em;
}

/* Sticky header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
  white-space: nowrap;
}

/* Hamburger (mobile) */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav — collapsed on mobile */

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--green);
  border-top: 1px solid rgba(245, 241, 230, 0.15);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.9rem 1.25rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--green-dark);
  color: var(--gold);
}

@media (min-width: 48em) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: none;
    color: var(--gold);
  }
}

/* Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 6vw, 3.25rem);
  max-width: 18ch;
}

.hero-subline {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(245, 241, 230, 0.9);
}

.hero .btn-primary {
  margin-top: 0.5rem;
}

@media (min-width: 48em) {
  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero-logo {
    width: 9rem;
    height: 9rem;
  }
}

/* Sections
   ========================================================================== */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: #EDE7D6; /* slightly deeper cream to separate bands */
}

.section-lede {
  max-width: 46rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

/* Card grids
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  border: 1px solid rgba(30, 61, 43, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(30, 61, 43, 0.12);
  border-top-color: var(--green);
}

@media (min-width: 40em) {
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60em) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Products
   ========================================================================== */

.product-card p {
  font-size: 0.97rem;
}

.product-tag {
  color: var(--rust);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.product-temp {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
}

.products-note {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--green);
}

/* Compliance checklist
   ========================================================================== */

.checklist {
  list-style: none;
  max-width: 38rem;
  margin: 2rem auto 0;
}

.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2.4rem;
  border-bottom: 1px solid rgba(30, 61, 43, 0.12);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-color: var(--gold);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 1.18rem;
  width: 0.65rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--green-dark);
  border-bottom: 2.5px solid var(--green-dark);
  transform: rotate(-45deg);
}

.compliance-closing {
  text-align: center;
  margin-top: 2rem;
  color: var(--green);
  font-size: 1.05rem;
}

/* Contact
   ========================================================================== */

.contact-grid {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  text-align: center;
}

.contact-name {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-phone {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.contact-phone:hover,
.contact-phone:focus-visible {
  color: var(--gold-dark);
}

.contact-card .btn-whatsapp {
  margin-top: 0.9rem;
}

.contact-email {
  text-align: center;
  margin-top: 2.25rem;
}

.contact-email a {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: var(--gold-dark);
  border-bottom-color: var(--green);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--cream);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background-color: var(--gold);
  color: var(--green-dark);
}

.icon-social {
  width: 1.3rem;
  height: 1.3rem;
}

/* Footer
   ========================================================================== */

.site-footer {
  background-color: var(--green);
  color: var(--cream);
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
}

.footer-nav a {
  color: var(--cream);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

@media (min-width: 48em) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
