/* Offers Mart Zone - main stylesheet
   Colors: crimson red (offers), charcoal (menu and text), warm white and blush backgrounds.
   Every section uses a grid with full rows, and every card in a row has the same height. */

:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --charcoal: #1f2933;
  --charcoal-soft: #323f4b;
  --grey: #616e7c;
  --blush: #fdf0f1;
  --paper: #fffdfb;
  --line: #e8dfe0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: var(--charcoal); }
h1 { font-size: 2.9rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ---------- top strip ---------- */
.strip { background: var(--red); color: #fff; font-size: 0.88rem; font-weight: 700; }
.strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.strip a { color: #fff; text-decoration: none; }

/* ---------- header: logo and phone, then a charcoal menu bar ---------- */
.header { background: var(--white); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(31, 41, 51, 0.08); }
.header .top { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 50px; width: auto; }
.callbox { text-align: right; line-height: 1.3; }
.callbox small { display: block; color: var(--grey); font-size: 0.8rem; }
.callbox a { color: var(--red); font-weight: 700; font-size: 1.3rem; text-decoration: none; }

.menu-bar { background: var(--charcoal); }
.nav { display: flex; align-items: center; gap: 0; }
.nav a { color: #fff; text-decoration: none; padding: 13px 22px; font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 1px; }
.nav a:hover, .nav a.active { background: var(--red); }
.nav a.nav-last { margin-left: auto; background: var(--red); }
.nav a.nav-last:hover { background: var(--red-dark); }

/* mobile menu works with a hidden checkbox, no scripts needed */
.menu-check { display: none; }
.menu-btn { display: none; cursor: pointer; background: var(--charcoal); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.88rem; padding: 12px 20px; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 26px; border: 0; border-radius: 4px; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--red-dark); }
.btn-dark { background: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal-soft); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--blush); }
.btn-small { padding: 8px 14px; font-size: 0.86rem; }

/* ---------- home hero: one big tile and two small tiles with equal total height ---------- */
.mosaic { padding: 28px 0 20px; }
.mosaic .wrap { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; height: 520px; }
.tile { position: relative; display: flex; align-items: flex-end; border-radius: 10px; overflow: hidden; background-color: var(--charcoal); background-size: cover; background-position: center; text-decoration: none; }
.tile .cover { width: 100%; padding: 60px 28px 26px; background: linear-gradient(transparent, rgba(31, 41, 51, 0.92)); color: #fff; }
.tile h1, .tile h3 { color: #fff; margin-bottom: 8px; }
.tile h1 { font-size: 2.6rem; max-width: 560px; }
.tile p { color: #f1e6e7; margin-bottom: 14px; max-width: 520px; }
.tile-main { grid-row: 1 / 3; background-image: url("../images/hero.jpg"); }
.tile-a { background-image: url("../images/promo-a.jpg"); }
.tile-b { background-image: url("../images/promo-b.jpg"); }
.tile .cover.small { padding: 40px 20px 18px; }
.tile h3.big { font-size: 1.3rem; }

/* four equal facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); margin-top: 20px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 20px 14px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; color: var(--red); }
.facts span { color: var(--grey); font-size: 0.9rem; }

/* inner page banner */
.page-title { background: var(--blush); padding: 44px 0; border-bottom: 3px solid var(--red); }
.page-title h1 { font-size: 2.3rem; margin-bottom: 6px; }
.page-title p { color: var(--grey); margin: 0; max-width: 680px; }
.crumbs { font-size: 0.86rem; margin-bottom: 10px; color: var(--grey); }
.crumbs a { color: var(--red); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.blush { background: var(--blush); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid var(--charcoal); padding-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--grey); }
.section-head a { font-weight: 700; text-decoration: none; }

/* grids: columns are fixed per section, so every row is full and aligned */
.grid { display: grid; gap: 22px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ---------- info boxes (equal height) ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 6px; padding: 22px; height: 100%; }
.box p:last-child { margin-bottom: 0; }
.box p { color: var(--grey); }

.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }

/* ---------- department cards: picture on the left, name on the right ---------- */
.cat { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-decoration: none; color: var(--charcoal); }
.cat:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(200, 16, 46, 0.14); }
.cat img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.cat span { display: block; font-weight: 700; line-height: 1.25; }
.cat small { display: block; color: var(--grey); margin-top: 4px; line-height: 1.3; }

/* ---------- product cards (same height in every row) ---------- */
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 100%; }
.product:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(200, 16, 46, 0.14); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f6f3f3; }
.product .info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.product .dept { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); font-weight: 700; }
.product h3 { flex: 1; min-height: 3.1em; margin: 4px 0 10px; }
.product .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--red); }

/* ---------- call to action ---------- */
.cta { background: var(--red); color: #fff; padding: 52px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto 20px; }
.cta .btn { background: var(--charcoal); }
.cta .btn:hover { background: #111a22; }

/* ---------- blog (equal cards) ---------- */
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.post:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(200, 16, 46, 0.14); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post .text { padding: 16px 20px 22px; flex: 1; }
.post .date { color: var(--red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.post p { color: var(--grey); margin-bottom: 0; }
.article { max-width: 780px; margin: 0 auto; }
.article img { border-radius: 10px; margin-bottom: 26px; width: 100%; }
.article h2 { margin-top: 28px; font-size: 1.5rem; }

/* ---------- text pages (policies) ---------- */
.text-page { max-width: 820px; margin: 0 auto; }
.text-page h2 { margin-top: 30px; font-size: 1.4rem; }

/* ---------- forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 8px; padding: 28px; }
.form label { display: block; font-weight: 700; margin-bottom: 4px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cdbfc1; border-radius: 4px; font: inherit; margin-bottom: 16px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form .check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.form .check label { font-weight: 400; margin: 0; }

.contact-line { margin-bottom: 18px; }
.contact-line b { display: block; color: var(--red); }

/* ---------- faq ---------- */
details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--grey); }

/* ---------- footer: four columns of equal width ---------- */
.footer { background: var(--charcoal); color: #c3ccd6; padding-top: 52px; font-size: 0.94rem; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer .cols > div { min-width: 0; }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 0.92rem; }
.footer a { color: #c3ccd6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo { display: inline-block; background: var(--white); border-radius: 6px; padding: 6px 12px; margin-bottom: 12px; }
.footer .logo img { height: 42px; }
.footer-bottom { border-top: 1px solid #3e4c59; margin-top: 36px; padding: 18px 0; font-size: 0.86rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { margin-left: 16px; }

/* ---------- tablet and phone (column counts always divide the items evenly) ---------- */
@media (max-width: 1000px) {
  .grid-4.products { grid-template-columns: repeat(3, 1fr); }
  .grid-4.cats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  .callbox small { display: none; }
  .mosaic .wrap { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 220px; height: auto; }
  .tile-main { grid-column: 1 / 3; grid-row: 1; }
  .tile h1 { font-size: 2rem; }
  .split { grid-template-columns: 1fr; }
  .grid-4.products, .grid-3.products { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-bottom: 1px solid var(--line); }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }

  .menu-btn { display: block; }
  .nav { display: none; flex-direction: column; align-items: stretch; }
  .nav a { border-top: 1px solid var(--charcoal-soft); }
  .nav a.nav-last { margin-left: 0; text-align: center; }
  .menu-check:checked ~ .menu-bar .nav { display: flex; }
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4.products, .grid-3.products { gap: 14px; }
  .grid-4.cats { grid-template-columns: 1fr; }
  .mosaic .wrap { grid-template-columns: 1fr; grid-template-rows: 360px 200px 200px; }
  .tile-main { grid-column: 1; }
  .product .row { flex-direction: column; align-items: stretch; }
  .product .btn { text-align: center; }
  .footer .cols { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .strip .wrap { justify-content: center; text-align: center; }
  .callbox a { font-size: 1.05rem; }
}
