/*
Theme Name: CWA Manus Clone
Theme URI: https://cannabiswarehouse.com.au
Author: Cannabis Warehouse
Author URI: https://cannabiswarehouse.com.au
Description: WordPress theme clone of the CannaHubOS prototype bundle.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cwa-manus-clone
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

:root {
  --bg-deep: #041a21;
  --bg-ink: #0b2c35;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --text: #16222a;
  --text-soft: #5f7280;
  --line: #d9e3e8;
  --brand: #10c7be;
  --brand-deep: #0ca39c;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(6, 34, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 350px at 20% -100px, rgba(16, 199, 190, 0.12), transparent 60%),
    linear-gradient(180deg, #edf4f7, #f6fafc 320px, #f8fbfd 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1260px, 94%);
  margin: 0 auto;
}

.site-header .container {
  width: min(1280px, 94%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(90deg, #041a21 0%, #062430 26%, #0a3d4b 58%, #114656 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 5px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  flex: 0 0 auto;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #90efe8;
  font-size: 0.82rem;
  background: rgba(35, 199, 189, 0.22);
  box-shadow: inset 0 0 0 1px rgba(151, 235, 229, 0.32);
}

.brand__text {
  color: #e9f7f9;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-transform: uppercase;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .menu > li {
  flex: 0 0 auto;
}

.site-nav .menu a {
  color: rgba(224, 241, 245, 0.86);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: -0.008em;
  white-space: nowrap;
}

.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav .menu-item-has-children > a::after {
  content: "⌄";
  margin-left: 4px;
  font-size: 0.72em;
  opacity: 0.65;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  min-width: 128px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(175, 212, 219, 0.09);
  text-decoration: none;
  color: #c8dde1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-search:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.header-search__icon {
  font-size: 0.78rem;
  opacity: 0.7;
}

.header-search__label {
  font-weight: 500;
  font-size: 0.75rem;
}

.header-search__kbd {
  margin-left: auto;
  font-size: 0.56rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  min-width: 22px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #e8f9fb;
  opacity: 0.95;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: -0.005em;
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(3, 22, 29, 0.26);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--solid {
  color: #042026;
  background: linear-gradient(180deg, #39ddd5, #1bc7bf);
  border: 1px solid transparent;
}

.btn--solid:hover {
  background: linear-gradient(180deg, #52e4dd, #21d2ca);
}

.site-main {
  padding: 42px 0 56px;
}

.archive-wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.archive-head {
  margin-bottom: 22px;
}

.entry-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.archive-title,
.entry-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.archive-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.entry-title {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  grid-column: span 6;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(6, 34, 43, 0.18);
}

.entry-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.entry-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card__body {
  padding: 22px;
}

.entry-single {
  width: min(980px, 92%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.entry-single--post {
  margin-bottom: 20px;
}

.entry-single--elementor {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.entry-header {
  margin-bottom: 16px;
}

.entry-header--hero {
  margin: -18px -18px 26px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 18px;
  color: #e7f8fb;
  background:
    radial-gradient(700px 220px at 85% 0%, rgba(16, 199, 190, 0.2), transparent 68%),
    linear-gradient(135deg, #06222b, #0a3541 52%, #0a4250);
}

.entry-header__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.entry-title--hero {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 12px;
  color: #ffffff;
}

.entry-header--hero .entry-kicker {
  color: #8fece6;
  margin: 0;
}

.entry-header--hero .entry-meta {
  margin-top: 0;
  color: #c7e7eb;
}

.entry-dek {
  margin: 0;
  max-width: 62ch;
  color: #d0e9ee;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.entry-cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-header--hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
}

.entry-header--hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.entry-hero-media {
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ccdde4;
  box-shadow: 0 10px 24px rgba(6, 34, 43, 0.12);
}

.entry-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-meta {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-excerpt,
.entry-content {
  color: var(--text);
}

.entry-content > * {
  max-width: 100%;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  font-size: 1.05rem;
}

.entry-content :where(h2, h3, h4) {
  margin-top: 1.4em;
  line-height: 1.2;
}

.entry-content a {
  color: #007aa1;
}

.entry-content a:hover {
  color: #005f7d;
}

.wp-block-image,
figure {
  margin: 1.2rem 0;
}

.wp-block-quote {
  border-left: 4px solid var(--brand);
  margin: 1.3rem 0;
  padding: 0.2rem 1rem;
  color: #314752;
}

.wp-block-code,
pre {
  background: #0b1f27;
  color: #d8f5fb;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid #d2dde3;
  padding: 8px 10px;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  color: var(--text);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: #0d2731;
  color: #fff;
  border-color: #0d2731;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid #dce6ea;
  background: #fff;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.site-footer__tagline {
  margin: 6px 0 0;
  color: var(--text-soft);
  max-width: 52ch;
}

.menu--footer {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  gap: 10px;
}

.menu--footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.menu--footer a:hover {
  color: var(--text);
}

.comments-area {
  width: min(980px, 92%);
  margin: 0 auto;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}

.comment-body {
  color: var(--text);
}

.comment-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.comment-author .avatar {
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 8px;
}

.comment-notes,
.logged-in-as {
  color: var(--text-soft);
  font-size: 0.95rem;
}

#respond {
  margin-top: 18px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid rgba(16, 199, 190, 0.35);
  border-color: var(--brand);
}

.comment-form .submit {
  justify-self: start;
  cursor: pointer;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px 0;
}

.search-form label {
  display: block;
}

.search-form .search-field {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

.search-form .search-submit {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, #44e3db, var(--brand));
  color: #05242b;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.search-form .search-submit:hover {
  background: linear-gradient(180deg, #55ebe4, #15d0c7);
}

@media (max-width: 980px) {
  .site-header .container {
    width: min(1260px, 94%);
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav .menu {
    gap: 8px;
    width: max-content;
  }

  .site-header__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-search {
    min-width: 138px;
  }

  .entry-card {
    grid-column: span 12;
  }

  .entry-header--hero {
    margin: -8px -8px 18px;
    border-radius: 14px;
  }
}
