/* Fonts */
@font-face {
  font-family: "PerpetuaProRoman";
  src: url('/assets/fonts/webFonts/PerpetuaProRoman/font.woff2') format('woff2'),
       url('/assets/fonts/webFonts/PerpetuaProRoman/font.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* Variables */
:root {
  --color-text: #161616;
  --color-cream: #f2f2f2;
  --font-perpetua: "PerpetuaProRoman", Georgia, serif;
  --font-inter: "Inter", sans-serif;
}

/* Page */
.page {
  display: flex;
  flex-direction: column;
  background-image: url('/assets/images/Textured_bg_light_small.jpg');
  background-size: 640px 640px;
  background-repeat: repeat;
}

/* Mobile — content scrolls, page grows with content */
@media (max-width: 767px) {
  .page {
    min-height: 100vh;
  }
}

/* Tablet + desktop — locked to one viewport height */
@media (min-width: 768px) {
  .page {
    height: 100vh;
  }
}

/* Shared stripe styles */
.stripes {
  flex-shrink: 0;
  width: 100%;
  height: 86px;
  background-image: url('/assets/images/Green_stripes_small.jpg');
  background-size: 260px 260px;
  background-repeat: repeat-x;
  background-position: left top;
  mix-blend-mode: multiply;
}

@media (min-width: 1280px) {
  .stripes {
    height: 66px;
  }
}

/* Top stripes — sticky on mobile only */
@media (max-width: 767px) {
  .stripes--top {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* Tablet + desktop — stripes sit in normal flow above content */
@media (min-width: 768px) {
  .stripes--top {
    position: relative;
    z-index: 1;
  }
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 14px;
  min-height: 0;
}

/* Mobile — min-height so content centres between stripes */
@media (max-width: 767px) {
  .main {
    min-height: calc(100vh - 172px);
  }
}

/* Short mobile (iPhone SE etc.) — tighten spacing so logo clears top stripes */
@media (max-width: 767px) and (max-height: 700px) {
  .main {
    gap: 8px;
    padding: 32px 24px;
  }
  .heading {
    margin-top: 12px;
  }
  .veg-crate {
    width: 110px;
  }
}

/* Logo */
.logo {
  width: 153px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Heading — extra top margin to visually match the space above the logo */
.heading {
  font-family: var(--font-perpetua);
  font-size: 38px;
  font-weight: normal;
  color: var(--color-text);
  text-align: center;
  line-height: 1;
  margin-top: 27px;
}

/* Offer wrap — positions the rough green-box image behind the text */
.offer-wrap {
  position: relative;
  width: 100%;
  max-width: 490px;
  flex-shrink: 0;
}

.offer-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 97%;
  height: 97%;
  display: block;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.offer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 30px;
}

.offer-title {
  font-family: var(--font-inter), sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

/* Divider — width: 100%, height: auto preserves the SVG's round dots */
.offer-divider {
  width: 100%;
}

.offer-divider img {
  display: block;
  width: 100%;
  height: auto;
}

.offer-sub {
  font-family: var(--font-inter), sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: var(--color-cream);
  text-align: center;
  width: 100%;
}

/* Instagram */
.instagram {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.instagram:hover {
  opacity: 0.75;
}

.instagram-text {
  font-family: var(--font-perpetua);
  font-size: 17px;
  font-weight: normal;
  white-space: nowrap;
  line-height: 1;
}

.instagram-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

/* Veg crate */
.veg-crate {
  width: 135px;
  flex-shrink: 0;
}

.veg-crate img {
  width: 100%;
  height: auto;
  display: block;
}
