/*
Theme Name: Monaghan Centre Demo
Theme URI: https://msc.crakila.dev/
Author: Codex
Description: Demo redesign for Monaghan Shopping Centre.
Version: 1.0.0
Text Domain: monaghan-demo
*/

:root {
  --ink: #16201d;
  --muted: #5f6e69;
  --line: #dce5e1;
  --paper: #ffffff;
  --soft: #f3f7f4;
  --green: #007a4d;
  --green-dark: #004f38;
  --lime: #b7d433;
  --orange: #f28c28;
  --blue: #1d6d9f;
  --shadow: 0 20px 55px rgba(22, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.demo-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 225, 0.8);
  backdrop-filter: blur(18px);
}

.demo-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.42rem 1rem;
}

.nav-wrap,
.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--lime));
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.65rem 0.82rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-dark);
  background: var(--soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn.secondary {
  color: var(--green-dark);
  background: #fff;
  border-color: var(--line);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: clamp(640px, 88vh, 820px);
  display: flex;
  align-items: stretch;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(0, 39, 27, 0.9) 0%, rgba(0, 59, 38, 0.66) 42%, rgba(0, 0, 0, 0.18) 100%),
    url("/wp-content/uploads/msc-demo-assets/intro-images3.png");
  background-size: cover;
  background-position: center;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(2.25rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 760px;
  padding-bottom: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.45rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.today-card {
  align-self: end;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.today-card h2 {
  margin: 0;
  font-size: 1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.8rem 0 0.25rem;
  color: var(--green-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.status::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--lime);
}

.today-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.52rem 1rem;
  margin: 1rem 0 0;
}

.today-card dt {
  color: var(--muted);
  font-weight: 750;
}

.today-card dd {
  margin: 0;
  font-weight: 900;
}

.quick-strip {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-card {
  min-height: 138px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 32, 29, 0.08);
  text-decoration: none;
}

.quick-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.quick-card strong {
  display: block;
  font-size: 1.1rem;
}

.quick-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}

.section.white {
  background: #fff;
}

.section.green {
  background: var(--green-dark);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.green .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.1rem;
}

.hours-panel,
.notice-panel,
.store-card,
.facility,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hours-panel {
  padding: 1.4rem;
}

.hours-list {
  margin: 0;
}

.hours-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 1rem;
  padding: 0.86rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-row:last-child {
  border-bottom: 0;
}

.hours-row dt {
  color: var(--muted);
  font-weight: 800;
}

.hours-row dd {
  margin: 0;
  font-weight: 900;
}

.notice-panel {
  min-height: 100%;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(183, 212, 51, 0.22), rgba(0, 122, 77, 0.08)),
    #fff;
}

.notice-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.notice-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.store-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(22, 32, 29, 0.06);
}

.logo-wrap {
  height: 150px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: #f9fbfa;
  border-bottom: 1px solid var(--line);
}

.logo-wrap img {
  max-width: 88%;
  max-height: 96px;
  object-fit: contain;
}

.store-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.72rem;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: var(--green-dark);
  background: #eaf3ee;
  font-size: 0.76rem;
  font-weight: 850;
}

.unit-pill {
  margin-left: auto;
  background: #eef4fb;
  color: #1d5c85;
}

.unit-icon {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  margin-right: 0.24rem;
  font-size: 0.86rem;
  line-height: 1;
}

.store-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.store-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.store-hours {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink);
  font-size: 0.88rem;
}

.store-hours strong {
  display: block;
  margin-bottom: 0.48rem;
}

.store-hours table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.store-hours tr + tr {
  border-top: 1px solid var(--line);
}

.store-hours th,
.store-hours td {
  padding: 0.42rem 0.52rem;
  text-align: left;
  vertical-align: top;
}

.store-hours th {
  width: 42%;
  color: var(--muted);
  font-weight: 850;
}

.store-hours td {
  color: var(--ink);
  font-weight: 850;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.store-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  color: var(--green-dark);
  background: #f2f8f5;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.store-links a:hover,
.store-links a:focus-visible {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.contact-icon {
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.facility {
  padding: 1.15rem;
}

.facility span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.facility h3 {
  margin: 0;
  font-size: 1.1rem;
}

.facility p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-panel {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.contact-panel p,
.contact-panel address {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.contact-panel a {
  color: #fff;
  font-weight: 850;
}

.map-frame {
  min-height: 360px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  padding: 1.4rem 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 104px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero .section-inner,
  .hours-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-actions .btn {
    display: none;
  }

  .brand-text span:first-child {
    max-width: 150px;
  }

  .hero {
    min-height: 740px;
  }

  .hero .section-inner {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .quick-grid,
  .store-grid,
  .facilities-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 0.85rem;
  }

  .footer-inner {
    display: block;
  }
}
