/* Noblecraft Cannabis — site styles
   Recreated from the original Squarespace theme:
   headings Titillium Web, body Montserrat, black/white palette with a
   slate "dark accent" (#282d30) and a gold logo. */

:root {
  --black: #000;
  --white: #fff;
  --dark-accent: #282d30;
  --light-accent: #707070;
  --card: rgba(40, 45, 48, 0.74);
  --gutter: clamp(16px, 4vw, 51px);
  --max: 1265px;
  --font-head: "Titillium Web", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.192rem;
  line-height: 1.8;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.88rem); line-height: 1.2; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.728rem); line-height: 1.3; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.768rem); }
h4 { font-size: 1.192rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 7vw, 90px) 0; }
.section--tight { padding: 40px 0; }
.center { text-align: center; }

.theme-dark { background: var(--black); color: var(--white); }
.theme-slate { background: var(--dark-accent); color: var(--white); }
.textured {
  background: #000 url("../images/webbackground-6.webp") center / cover;
  color: var(--white);
}

/* ---------- Buttons (outline, square → pill on hover) ---------- */
.btn {
  display: inline-block;
  padding: 1.1em 2em;
  border: 2px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 1.096rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-radius .5s ease-in-out, background-color .3s, color .3s;
}
.btn:hover, .btn:focus-visible { border-radius: 50px; }
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.theme-dark .btn--solid, .theme-slate .btn--solid {
  background: var(--white); color: var(--black); border-color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000 url("../images/webbackground-01-01.webp") center / cover no-repeat;
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  padding-top: 13px;
  padding-bottom: 13px;
}
.logo img { width: 138px; transition: width .2s ease-in-out; }
.site-header.shrink .logo img { width: 100px; }

.nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
}
/* animated underline from the original custom CSS */
.nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 2px auto 0;
  background: var(--white);
  transition: width 1s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 900px) {
  .logo img { width: 96px; }
  .site-header.shrink .logo img { width: 80px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h, 120px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    padding-top: 40px;
    background: #000 url("../images/webbackground-6.webp") center / cover;
    font-size: 1.4rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav a { font-size: 1.5rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; text-align: left; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer h3 { margin: 0 0 .2em; }
.footer-links { display: flex; gap: 18px; font-size: .95rem; }
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.social { display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; }
.social svg { width: 26px; height: 26px; fill: currentColor; }
.social a:hover { opacity: .75; }
@media (max-width: 640px) {
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- Age gate / full-screen hero ---------- */
.fullscreen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
  color: var(--white);
  text-align: center;
  background: #000 center / cover no-repeat;
  isolation: isolate;
}
.fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, .55);
  z-index: -1;
}
.fullscreen .gate-logo { width: min(370px, 70vw); margin: 0 auto 8px; }
.gate-actions { display: flex; justify-content: center; gap: clamp(24px, 20vw, 270px); flex-wrap: wrap; margin-top: 24px; }
.gate-actions .btn { min-width: 168px; }

/* ---------- Home ---------- */
.hero {
  position: relative;
  height: clamp(280px, 46vw, 594px);
  background: #000 url("../images/noblecraft-jars-cannabis-portland.jpg") center / cover no-repeat;
}
.hero-tagline {
  position: absolute;
  right: var(--gutter);
  bottom: 50px;
  width: min(576px, 55%);
}
@media (max-width: 640px) {
  .hero-tagline { left: var(--gutter); right: var(--gutter); width: calc(100% - 2 * var(--gutter)); bottom: 20px; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}
.split > img { width: 100%; justify-self: end; max-width: 465px; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split > img { justify-self: center; }
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.features img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.features .btn { margin-top: .4em; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

.insta {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.insta a { display: block; overflow: hidden; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.insta a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .insta { grid-template-columns: repeat(3, 1fr); } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- About ---------- */
.page-hero {
  position: relative;
  min-height: clamp(360px, 46vw, 594px);
  display: flex;
  align-items: flex-end;
  padding: 60px 0;
  color: var(--white);
  background: #000 center / cover no-repeat;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.55));
  z-index: -1;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 60px;
  margin-top: 40px;
}
.value { position: relative; }
.value img { width: 72%; aspect-ratio: 3 / 2; object-fit: cover; }
.value .card {
  position: relative;
  width: 60%;
  margin: -110px 0 0 auto;
  padding: 28px 24px;
  background: var(--card);
  color: var(--white);
  text-align: center;
  backdrop-filter: blur(2px);
}
.value .card p { margin: 0; font-size: 1rem; }
.value:nth-child(even) { margin-top: 160px; }
.value:nth-child(even) img { margin-left: auto; }
.value:nth-child(even) .card { margin: -110px auto 0 0; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; gap: 50px; }
  .value:nth-child(even) { margin-top: 0; }
  .value img { width: 100%; }
  .value .card, .value:nth-child(even) .card { width: 88%; margin: -60px auto 0; }
}

/* ---------- Contact ---------- */
input, textarea {
  width: 100%;
  padding: 1.1em 1.2em;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #fafafa;
  color: #000;
  font: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
.hidden-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-status { margin-top: 16px; min-height: 1.5em; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form .btn { margin-top: 18px; }
.narrow { max-width: 760px; }

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery button:hover img { transform: scale(1.04); opacity: .9; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .92);
  padding: 50px 16px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; max-width: min(1200px, 100%); }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
}
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Legal ---------- */
.legal { font-size: 1rem; line-height: 1.75; }
.legal h2 { font-size: 1.9rem; margin-top: 1.4em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.4em; }
.legal h4 { font-size: 1.1rem; margin-top: 1.2em; }
.legal li p { margin: 0 0 .4em; }
.legal h3:empty { display: none; }

/* ---------- Fade-in on scroll (original site used fade animations) ---------- */
.fade { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
