/* Grab Shopping Hub - main stylesheet
   Colors: deep ocean teal (calm), brass gold (accent), warm sand (background).
   Every section uses a grid with full rows, and every card in a row has the same height. */

:root {
  --ocean: #0c4a5a;
  --ocean-dark: #08323d;
  --ocean-soft: #e3eff1;
  --brass: #c8962e;
  --brass-dark: #a87a1c;
  --sand: #f6f0e4;
  --paper: #fdfaf4;
  --ink: #14272e;
  --grey: #5d6e74;
  --line: #e2dccd;
  --white: #ffffff;
}

* { box-sizing: border-box; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: var(--ocean-dark); }
h1 { font-size: 2.8rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 14px; }

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

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

/* ---------- header and menu ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 30px; }
.nav a:hover, .nav a.active { background: var(--ocean-soft); color: var(--ocean); }
.nav a.nav-btn { background: var(--brass); color: var(--ocean-dark); margin-left: 8px; }
.nav a.nav-btn:hover { background: var(--brass-dark); color: #fff; }

/* mobile menu works with a hidden checkbox, no scripts needed */
.menu-check { display: none; }
.menu-btn { display: none; cursor: pointer; font-weight: 700; color: var(--ocean); border: 2px solid var(--ocean); border-radius: 30px; padding: 4px 16px; }

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

/* ---------- home: department sidebar beside the hero (same height) ---------- */
.front { padding: 24px 0 8px; }
.front .wrap { display: grid; grid-template-columns: 270px 1fr; gap: 20px; height: 480px; }
.rail { background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.rail h2 { background: var(--ocean); color: #fff; font-size: 1rem; font-family: "Trebuchet MS", sans-serif; letter-spacing: 1px; text-transform: uppercase; margin: 0; padding: 14px 18px; }
.rail a { flex: 1; display: flex; align-items: center; padding: 0 18px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.94rem; border-bottom: 1px solid var(--line); }
.rail a:last-child { border-bottom: 0; }
.rail a:hover { background: var(--ocean-soft); color: var(--ocean); }

.banner { position: relative; display: flex; align-items: flex-end; border-radius: 14px; overflow: hidden; background: var(--ocean) url("../images/hero.jpg") center / cover no-repeat; }
.banner .cover { width: 100%; padding: 90px 36px 34px; background: linear-gradient(transparent, rgba(8, 50, 61, 0.94)); color: #fff; }
.banner h1 { color: #fff; max-width: 560px; }
.banner p { color: #d7e8eb; max-width: 520px; font-size: 1.05rem; }

/* four equal facts */
.facts { margin-top: 24px; background: var(--ocean); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 18px 14px; text-align: center; border-right: 1px solid #1e6577; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; color: #f0cf8a; }
.facts span { font-size: 0.9rem; color: #cfe3e7; }

/* inner page banner */
.page-title { background: var(--sand); padding: 46px 0; border-bottom: 4px solid var(--brass); }
.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(--ocean); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.sand { background: var(--sand); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--brass); margin: 12px auto 0; border-radius: 2px; }
.section-head p { color: var(--grey); }

/* 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: 16px; }

/* ---------- promo tiles (three equal photo tiles) ---------- */
.promo { position: relative; display: flex; align-items: flex-end; min-height: 250px; border-radius: 14px; overflow: hidden; background-color: var(--ocean); background-size: cover; background-position: center; text-decoration: none; }
.promo .cover { width: 100%; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(8, 50, 61, 0.92)); color: #fff; }
.promo h3 { color: #fff; font-size: 1.25rem; margin-bottom: 2px; }
.promo p { margin: 0; color: #d7e8eb; }
.promo-1 { background-image: url("../images/promo-1.jpg"); }
.promo-2 { background-image: url("../images/promo-2.jpg"); }
.promo-3 { background-image: url("../images/promo-3.jpg"); }

/* ---------- info boxes (equal height) ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 12px; padding: 24px; 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; background: var(--brass); color: var(--ocean-dark); width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 0.75rem; font-weight: 700; }

/* ---------- department cards ---------- */
.cat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.cat:hover { border-color: var(--ocean); box-shadow: 0 8px 22px rgba(12, 74, 90, 0.16); }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat div { padding: 14px 16px 16px; }
.cat span { display: block; font-family: Georgia, serif; font-weight: 700; color: var(--ocean-dark); }
.cat small { color: var(--grey); }

/* ---------- product cards (same height in every row) ---------- */
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 100%; }
.product:hover { border-color: var(--ocean); box-shadow: 0 8px 22px rgba(12, 74, 90, 0.16); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4f1ea; }
.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(--brass-dark); font-weight: 700; }
.product h3 { font-family: "Trebuchet MS", sans-serif; flex: 1; min-height: 3.1em; margin: 4px 0 10px; color: var(--ink); }
.product .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--ocean); }

/* ---------- call to action ---------- */
.cta { background: var(--ocean); color: #fff; padding: 56px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto 20px; color: #d7e8eb; }

/* ---------- blog (equal cards) ---------- */
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.post:hover { border-color: var(--ocean); box-shadow: 0 8px 22px rgba(12, 74, 90, 0.16); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post .text { padding: 16px 20px 22px; flex: 1; }
.post .date { color: var(--brass-dark); 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: 14px; 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(--brass); border-radius: 14px; 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 #cfc7b4; border-radius: 8px; font: inherit; margin-bottom: 16px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ocean); border-color: var(--ocean); }
.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(--brass-dark); }

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

/* ---------- footer: four columns of equal width ---------- */
.footer { background: var(--ocean-dark); color: #b9d0d5; 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: #f0cf8a; }
.footer a { color: #b9d0d5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo { display: inline-block; background: var(--white); border-radius: 10px; padding: 6px 12px; margin-bottom: 12px; }
.footer .logo img { height: 42px; }
.footer-bottom { border-top: 1px solid #1e6577; 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); }
  .front .wrap { grid-template-columns: 220px 1fr; }
}

@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  .front .wrap { grid-template-columns: 1fr; height: auto; }
  .banner { min-height: 380px; }
  .rail { display: grid; grid-template-columns: repeat(2, 1fr); }
  .rail h2 { grid-column: 1 / 3; }
  .rail a { padding: 14px 18px; border-right: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .grid-4.products, .grid-3.products { grid-template-columns: repeat(2, 1fr); }
  .grid-4.cats { 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 #1e6577; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }

  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 8px; }
  .nav a.nav-btn { margin: 10px 0 0; text-align: center; }
  .menu-check:checked ~ .nav { display: flex; }
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4.products, .grid-3.products { gap: 14px; }
  .product .row { flex-direction: column; align-items: stretch; }
  .product .btn { text-align: center; }
  .rail { grid-template-columns: 1fr; }
  .rail h2 { grid-column: 1; }
  .footer .cols { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .strip .wrap { justify-content: center; text-align: center; }
}
