/* CnJ Specialties - Site Styles
   Clean, warm woodshop branding (brown + cream)
*/

:root{
  --bg: #0f0b09;
  --paper: #f6f1ea;
  --paper2: #efe6db;
  --ink: #1d1410;
  --muted: #6b5a4f;
  --accent: #a66b3e;   /* warm brown */
  --accent2:#5f3b28;   /* dark brown */
  --border: rgba(31, 22, 18, .16);
  --shadow: 0 18px 40px rgba(18, 12, 9, .18);
  --radius: 18px;

  --maxw: 1120px;
}

/* Base */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(166,107,62,.22), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(95,59,40,.18), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper2));
}

img{ max-width:100%; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width:min(var(--maxw), calc(100% - 2rem));
  margin:0 auto;
}

.muted{ color: var(--muted); }
.h1{ font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height:1.05; letter-spacing:-.03em; margin:.25rem 0 .6rem; }
.h2{ font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height:1.15; margin:0; }
.h3{ font-size: 1.1rem; margin:.1rem 0 .4rem; }
.p{ margin:.35rem 0; line-height:1.55; }

/* Nav */
.nav{
  position:sticky;
  top:0;
  z-index: 50;
  background: rgba(246,241,234,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .65rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
}
.brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-text b{
  display:block;
  font-size: 1rem;
  letter-spacing:.02em;
}
.brand-text span{
  display:block;
  font-size:.85rem;
  color: var(--muted);
  margin-top: .1rem;
}
.menu{
  display:flex;
  gap: .55rem;
  align-items:center;
  flex-wrap:wrap;
}
.menu a{
  padding: .45rem .65rem;
  border-radius: 999px;
  color: var(--accent2);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
}
.menu a:hover{
  background: rgba(166,107,62,.10);
}
.menu a.active{
  background: rgba(166,107,62,.14);
}
.menu a.cta{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(95,59,40,.20);
}
.menu a.cta:hover{
  background: #8d5831;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  color: var(--accent2);
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(18,12,9,.08);
}
.btn:hover{ text-decoration:none; filter: brightness(0.98); }
.btn.primary{
  background: var(--accent);
  border-color: rgba(0,0,0,.08);
  color:#fff;
}
.btn.primary:hover{ background:#8d5831; }
.btn.small{
  padding: .55rem .85rem;
  font-weight: 800;
  font-size: .92rem;
}

/* Cards + layout helpers */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.card-pad{ padding: 1.15rem 1.15rem; }

.section{ padding: 2.2rem 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  margin-bottom: .75rem;
}

.sep{
  height:1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* Hero */
.hero{
  padding: 2rem 0 1.6rem;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order:-1; }
}

.hero-media{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(166, 107, 62, .18), transparent 60%),
    radial-gradient(700px 240px at 90% 30%, rgba(48, 33, 26, .25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  min-height: 420px;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  padding: 14px;
}
.overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 420px at 10% 0%, rgba(166,107,62,.22), transparent 55%),
    radial-gradient(900px 360px at 90% 30%, rgba(95,59,40,.18), transparent 60%);
}
.stamp{
  position:absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  padding: .8rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(17, 10, 7, .55);
  color: #fff;
  backdrop-filter: blur(10px);
}
.stamp b{ display:block; font-size: 1rem; }
.stamp span{ display:block; opacity:.88; margin-top:.25rem; font-size:.92rem; }

/* Grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px){
  .grid3{ grid-template-columns: 1fr; }
}
.tile{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.70);
  padding: 1.05rem 1.05rem;
  box-shadow: 0 14px 28px rgba(18,12,9,.10);
}
.tile h3{ margin:.1rem 0 .35rem; }
.tile-cta{ margin-top: .75rem; display:flex; gap:.55rem; flex-wrap:wrap; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}
.step-num{
  width: 34px; height: 34px;
  border-radius: 999px;
  display:grid; place-items:center;
  font-weight:800;
  background: rgba(166, 107, 62, .15);
  border: 1px solid rgba(166, 107, 62, .35);
  color: #543324;
  margin-bottom: .65rem;
}

/* Home-specific bits */
.kicker{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-size:.9rem;
  color: var(--muted);
  margin-bottom:.6rem;
}
.kicker .dot{
  width:.55rem; height:.55rem;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 107, 62, .15);
}
.price-row{
  display:flex;
  gap:.9rem;
  align-items:stretch;
  flex-wrap:wrap;
  margin: 1rem 0 1.05rem;
}
.price, .deposit{
  flex:1 1 220px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem .95rem;
  background: rgba(255,255,255,.65);
}
.price-label, .deposit-label{
  display:block;
  font-size:.85rem;
  color: var(--muted);
  margin-bottom:.15rem;
}
.price-value, .deposit-value{
  display:inline-block;
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:-.02em;
  margin-right:.35rem;
}
.price-note{ color: var(--muted); font-size:.95rem; }
.btns{ display:flex; gap:.65rem; flex-wrap:wrap; }

.mini-features{
  display:grid;
  grid-template-columns: 1fr;
  gap:.65rem;
  margin-top: 1rem;
}
.mini{
  border: 1px dashed rgba(166, 107, 62, .35);
  border-radius: 14px;
  padding: .75rem .85rem;
  background: rgba(255,255,255,.55);
}
.mini b{ display:block; margin-bottom:.15rem; }
.mini span{ color: var(--muted); }

.cta-band{
  margin-top: 1.25rem;
  padding: 1.1rem 1.1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
}
.cta-band-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }

/* Forms */
.form{
  display:grid;
  gap: .9rem;
}
label{
  display:block;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: .35rem;
}
input, select, textarea{
  width:100%;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: 1rem;
}
textarea{ min-height: 120px; resize: vertical; }
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
@media (max-width: 800px){
  .row2{ grid-template-columns: 1fr; }
}
.notice{
  border-left: 4px solid var(--accent);
  padding: .75rem .9rem;
  border-radius: 14px;
  background: rgba(166,107,62,.10);
  border: 1px solid rgba(166,107,62,.20);
}
.page-title{
  padding: 1.6rem 0 .5rem;
}

/* Order page pay box */
.pay-box{
  border-radius: var(--radius);
  border: 1px solid rgba(166,107,62,.28);
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 36px rgba(18,12,9,.12);
  padding: 1rem 1rem;
}
.pay-price{
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--accent2);
}
.pay-btn{
  display:inline-flex;
  width:100%;
  margin-top: .75rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  justify-content:center;
  text-decoration:none;
}
.pay-btn:hover{ background:#8d5831; text-decoration:none; }
.highlight-pay{
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(166,107,62,.35); }
  70%{ box-shadow: 0 0 0 14px rgba(166,107,62,0); }
  100%{ box-shadow: 0 0 0 0 rgba(166,107,62,0); }
}

/* Gallery (works with both old gcard layout and new grids) */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .85rem;
}
@media (max-width: 500px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

.gcard{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 28px rgba(18,12,9,.10);
}
.gcard img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
}
.gcard .gmeta{ padding: .85rem .95rem; }
.gcard .gmeta b{ display:block; }
.gcard .gmeta span{ color: var(--muted); font-size:.92rem; }


/* Gallery thumbnails */
.media-thumb{
  appearance:none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 22px rgba(18,12,9,.10);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.media-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(18,12,9,.18);
  border-color: rgba(149,105,72,.45);
}
.media-thumb img{
  width: 100%;
  height: 165px;
  object-fit: cover;
  display:block;
}
@media (max-width: 900px){
  .media-thumb img{ height: 150px; }
}
@media (max-width: 500px){
  .media-thumb img{ height: 130px; }
}
.media-thumb.is-video img{
  filter: brightness(.92);
}
.play-badge{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display:grid;
  place-items:center;
  font-size: 22px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.35);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(10,6,4,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 1.25rem;
  z-index: 1000;
}
.lightbox.open{ display:flex; }
.lightbox-inner{
  width:min(1100px, 100%);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.lightbox-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.lightbox-title{ font-weight: 900; color: var(--accent2); }
.lightbox-close{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
  border-radius: 12px;
  padding: .45rem .7rem;
  cursor:pointer;
  font-weight: 900;
}
.lightbox-media{
  display:grid;
  place-items:center;
  background: #111;
}
.lightbox-media img, .lightbox-media video{
  width:100%;
  height: min(78vh, 700px);
  object-fit: contain;
  display:block;
}
/* Downloads page thumbnails */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
}

.download-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto 0.75rem;
  display: block;
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  margin-top: 1.5rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items:start;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}
/* Board Butter quick purchase */
.board-butter-box {
  border-radius: var(--radius);
  border: 2px solid rgba(166,107,62,.45);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 40px rgba(18,12,9,.14);
  padding: 1.25rem 1.25rem;
  margin-top: 1.5rem;
}

.board-butter-box h3 {
  margin: 0 0 .25rem;
  color: var(--accent2);
}

.board-butter-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  margin: .25rem 0;
}

.board-butter-note {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .75rem;
}

.board-butter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(95,59,40,.25);
}

.board-butter-btn:hover {
  background: #8d5831;
  text-decoration: none;
}

.footer-brand{ font-weight: 900; color: var(--accent2); }
.footer-links, .footer-contact{ display:grid; gap:.35rem; }
