/* Mad4Mod site styles */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --cream: #F7F2E9;
  --cream-2: #EFE7D8;
  --card: #FBF8F1;
  --walnut: #3B2A20;
  --walnut-2: #5B4632;
  --olive: #6B7A4F;
  --burnt: #BB5A2C;
  --burnt-hover: #9C4B22;
  --teal: #2B6E6A;
  /* Category pill fills - each paired with text that gives >= 4.5:1 contrast. */
  --pill-c1: #2B6E6A;
  --pill-c2: #A94E22;
  --pill-c3: #E3A62F;
  --pill-c4: #566341;
  --teal-deep: #1F4F4C;
  --mustard: #E3A62F;
  --mustard-wash: #F5E9C8;
  --ink: #201812;
  --muted: #8A7A63;
  --line: rgba(59, 42, 32, 0.14);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Archivo', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}

a { text-decoration: none; color: inherit; }

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

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--walnut);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--walnut);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav__link:hover { color: var(--burnt); }

.nav__link.is-active {
  color: var(--burnt);
  border-bottom-color: var(--burnt);
}

.nav__etsy {
  font-size: 14px;
  font-weight: 600;
  color: var(--walnut-2);
}

.nav__etsy:hover { color: var(--burnt); }

.nav__phone {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 999px;
}

.nav__phone:hover { background: var(--teal-deep); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-align: center;
}

.btn--primary { background: var(--teal); color: var(--cream); }
.btn--primary:hover { background: var(--teal-deep); }

.link-underline {
  font-weight: 600;
  font-size: 15px;
  color: var(--walnut);
  border-bottom: 2px solid var(--burnt);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--burnt); }

.link-accent {
  font-size: 14px;
  font-weight: 600;
  color: var(--burnt);
}
.link-accent:hover { color: var(--burnt-hover); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 96px 48px 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
}

.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--walnut-2);
  max-width: 480px;
  margin: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  background: var(--cream-2);
}

.hero__image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
}

.tag-pill {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(59, 42, 32, 0.86);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Designer strip ---------- */

.designer-strip {
  padding: 28px 48px;
  background: var(--mustard-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.designer-strip__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  white-space: nowrap;
}

.designer-strip__names {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--walnut-2);
}

.designer-strip__names .dot { color: var(--burnt); }

/* ---------- Value props ---------- */

.value-props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 72px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.value-card { display: flex; flex-direction: column; gap: 14px; }

.value-card svg { color: var(--burnt); }
.value-card--teal svg { color: var(--teal); }
.value-card--mustard svg { color: var(--mustard); }

.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
}

.value-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--walnut-2);
  margin: 0;
}

/* ---------- Featured (Recently in the Warehouse) ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--ink);
  margin: 0;
}

.featured {
  padding: 0 48px 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.featured-empty {
  font-size: 14px;
  color: var(--muted);
}

.product-card { display: flex; flex-direction: column; gap: 12px; }

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.product-card__title { font-weight: 700; font-size: 15px; color: var(--ink); }
.product-card__title span { font-weight: 500; color: var(--muted); }
.product-card__meta { font-size: 13px; color: var(--olive); }

/* ---------- Page intro (Gallery) ---------- */

.page-intro {
  padding: 64px 48px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-intro .eyebrow { margin-bottom: 14px; }

.page-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  color: var(--ink);
  margin: 0 0 14px;
}

.page-intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--walnut-2);
  max-width: 640px;
  margin: 0;
}

/* ---------- Filter chips ---------- */

.chips {
  display: flex;
  gap: 12px;
  padding: 0 48px 36px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 42, 32, 0.25);
  color: var(--walnut-2);
  background: none;
  cursor: pointer;
}

.chip.is-active {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

/* When a category chip (rather than "All") is selected, it takes on that category's own
   pill color instead of the default teal - see .category-pill--c1..c4 below. */
.chip.category-pill--c1.is-active { background: var(--pill-c1); border-color: var(--pill-c1); color: var(--cream); --chip-ring: var(--pill-c1); }
.chip.category-pill--c2.is-active { background: var(--pill-c2); border-color: var(--pill-c2); color: var(--cream); --chip-ring: var(--pill-c2); }
.chip.category-pill--c3.is-active { background: var(--pill-c3); border-color: var(--pill-c3); color: var(--walnut); --chip-ring: var(--pill-c3); }
.chip.category-pill--c4.is-active { background: var(--pill-c4); border-color: var(--pill-c4); color: var(--cream); --chip-ring: var(--pill-c4); }

/* Selected chip gets a ring in its own color so it reads clearly as the active filter. */
.chip.is-active { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--chip-ring, var(--teal)); }
.chip:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }

/* ---------- Gallery grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 20px;
  padding: 0 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-empty {
  padding: 0 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--muted);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-card__figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.gallery-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--walnut);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  /* Cream ring keeps the badge distinct from both light and dark photos. */
  box-shadow: 0 0 0 2px var(--cream), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Deterministic, name-agnostic color slots for Gallery Category pills - see
   GalleryCategoryColorPalette, which assigns each category to one of these based on its id so the
   same category always renders the same color without hardcoding a color per category name. */
.category-pill--c1 { background: var(--pill-c1); color: var(--cream); }
.category-pill--c2 { background: var(--pill-c2); color: var(--cream); }
.category-pill--c3 { background: var(--pill-c3); color: var(--walnut); }
.category-pill--c4 { background: var(--pill-c4); color: var(--cream); }

.gallery-card__body { flex: none; }

.gallery-card__title { font-weight: 700; font-size: 15px; color: var(--ink); }
.gallery-card__title span { font-weight: 500; color: var(--muted); }
.gallery-card__designer { font-size: 12.5px; font-weight: 600; color: var(--burnt); margin-top: 2px; }
.gallery-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gallery-card__link { font-size: 12.5px; font-weight: 600; color: var(--walnut); display: inline-block; margin-top: 6px; }
.gallery-card__link:hover { color: var(--burnt); }

.span-2-2 { grid-column: span 2; grid-row: span 2; }
.span-4-2 { grid-column: span 4; grid-row: span 2; }
.span-3-2 { grid-column: span 3; grid-row: span 2; }
.span-4-1 { grid-column: span 4; grid-row: span 1; }
.span-2-1 { grid-column: span 2; grid-row: span 1; }

/* ---------- About / Contact ---------- */

.about-story {
  padding: 72px 48px 56px;
  max-width: 820px;
  margin: 0 auto;
}

.about-story h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
}

.about-story p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--walnut-2);
  margin: 0 0 16px;
}

.about-story p:last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 0 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-grid h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(59, 42, 32, 0.22);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}

.contact-form textarea { resize: none; }

.contact-form ::placeholder { color: #A99A82; }

.contact-form .btn--primary {
  border: none;
  cursor: pointer;
  margin-top: 4px;
  border-radius: 10px;
}

.contact-form .btn--primary:disabled { opacity: 0.6; cursor: wait; }

.contact-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.contact-status[data-state="ok"] { color: #2F6B3A; }
.contact-status[data-state="error"] { color: #A12C2C; }

.visit-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--walnut-2);
  margin-bottom: 18px;
}

.visit-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.visit-phone {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 24px;
}

.visit-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.visit-socials a {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 42, 32, 0.25);
  color: var(--walnut);
}
.visit-socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }

.visit-policy {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 56px 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 242, 233, 0.16);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-hours { font-size: 14px; line-height: 1.7; color: #E7DFD0; }

.footer-note { font-size: 14px; margin-top: 10px; color: #E7DFD0; }

.footer-phone { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--cream); }
.footer-phone:hover { color: #E3A369; }

.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #E3A369; }

.footer-policy { font-size: 13px; line-height: 1.7; color: #CBBFA8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 12px;
  color: #B3A489;
}

.footer-bottom__left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #B3A489;
}
.footer-credit:hover { color: var(--cream); }

.footer-credit__logo { width: 18px; height: 18px; flex: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero, .value-props, .featured, .page-intro, .chips, .gallery, .about-story, .contact-grid, .footer-grid, .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav { padding: 16px 24px; flex-wrap: wrap; row-gap: 12px; }
  .nav__right { gap: 16px; flex-wrap: wrap; }
  .nav__links { gap: 16px; }
  .nav__etsy { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .hero__image img { height: 340px; }

  .value-props, .featured-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .span-2-2, .span-4-2, .span-3-2, .span-4-1, .span-2-1 { grid-column: span 2; grid-row: span 2; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cookie consent (Analytics plugin banner override) ---------- */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 6px solid var(--mustard);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(59, 42, 32, 0.22);
  font-family: var(--font-body);
}

.consent[hidden] { display: none; }

.consent__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.consent__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--walnut);
}

.consent__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--walnut-2);
}

.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }

.consent__btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--walnut);
  font: 600 14px var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.consent__btn--ghost { background: transparent; color: var(--walnut); }
.consent__btn--ghost:hover { background: var(--cream-2); }
.consent__btn--primary { background: var(--burnt); border-color: var(--burnt); color: var(--cream); }
.consent__btn--primary:hover { background: var(--burnt-hover); border-color: var(--burnt-hover); }

@media (max-width: 640px) {
  .consent__form { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: flex-end; }
}

.consent__text a { color: var(--burnt); text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--burnt-hover); }

.footer-privacy { text-decoration: underline; text-underline-offset: 2px; }
.footer-privacy:hover { color: var(--cream); }

.visit-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 14px;
}

.visit-address a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.visit-address a:hover { color: var(--burnt-hover); }

/* ---------- Privacy policy (body region accepts any block type) ---------- */

.policy {
  padding: 72px 48px 96px;
  max-width: 820px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--walnut-2);
}

.policy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
}

.policy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--walnut);
  margin: 40px 0 12px;
}

.policy p, .policy ul, .policy ol { margin: 0 0 16px; }
.policy ul, .policy ol { padding-left: 24px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--burnt); text-decoration: underline; text-underline-offset: 2px; }
.policy a:hover { color: var(--burnt-hover); }

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14.5px;
}

.policy th, .policy td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.policy th { color: var(--walnut); background: var(--cream-2); }

@media (max-width: 640px) {
  .policy { padding-left: 24px; padding-right: 24px; }
  .policy table { display: block; overflow-x: auto; }
}
