/* Beechgrove Foods — base styles */

:root {
  --red: #b30000;
  --red-dark: #8a0000;
  --dark: #1c2224;
  --text: #4f6367;
  --text-light: #657376;
  --border: #e3e7e8;
  --bg-alt: #f6f7f7;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2 {
  color: var(--dark);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 20px;
}

h1 strong, h2 strong {
  font-weight: 700;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 28px;
}

p {
  margin: 0 0 16px;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.main-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  overflow-y: auto;
}

.main-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px 40px;
}

.main-nav li + li {
  border-top: 1px solid var(--border);
}

.main-nav a {
  display: block;
  padding: 16px 0;
  color: var(--dark);
  font-size: 17px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  text-decoration: none;
}

/* Sections */

.section {
  padding: 60px 0;
  scroll-margin-top: 60px;
}

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

.hero {
  padding: 80px 0 60px;
  background: linear-gradient(rgba(28, 34, 36, 0.65), rgba(28, 34, 36, 0.65)), url('../images/top-image.jpg') center / cover no-repeat;
  color: #fff;
}

.hero h1 {
  color: #fff;
}

.hero .lead {
  color: #c7d0d1;
  font-size: 18px;
  max-width: 640px;
}

.lead {
  font-size: 18px;
  color: var(--text-light);
}

.lead-small {
  font-size: 15px;
}

/* Check list */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.check-list.nested {
  margin-top: 10px;
}

/* Product list */

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-list li {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.product-list img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-list div {
  padding: 14px 16px;
  font-size: 14px;
}

/* About / milestones */

.about-grid {
  display: grid;
  gap: 40px;
}

.milestones-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.milestones-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.milestone-number {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestones-list p {
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 40px;
}

form label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin: 16px 0 6px;
}

form label:first-child {
  margin-top: 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.submit-btn {
  margin-top: 20px;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--red-dark);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

#formStatus {
  margin-top: 12px;
  font-weight: 600;
}

#formStatus.error {
  color: var(--red);
}

#formStatus.success {
  color: #2e7d32;
}

.contact-details .flag {
  width: 60px;
  margin-bottom: 16px;
}

.contact-details p {
  font-size: 15px;
}

/* Accessibility */

.accessibility-details summary {
  cursor: pointer;
  font-size: 16px;
  padding: 8px 0;
}

.accessibility-details[open] summary {
  margin-bottom: 10px;
}

.accessibility-details p,
.accessibility-details ul {
  font-size: 20px;
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: #a4b0b2;
  padding: 24px 0;
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: #fff;
}

/* Tablet and up */

@media (max-width: 719px) {
  .hero {
    background-position: left;
  }
}

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

  .main-nav {
    position: static;
    transform: none;
    visibility: visible;
    background: none;
  }

  .main-nav ul {
    display: flex;
    padding: 0;
    margin: 0;
  }

  .main-nav li + li {
    border-top: 0;
  }

  .main-nav a {
    padding: 24px 16px;
    font-size: 14px;
    color: #fff;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #ffd9d9;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .about-grid {
    grid-template-columns: 3fr 2fr;
  }

  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

@media (min-width: 960px) {
  h1 {
    font-size: 54px;
  }
}
