@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&display=swap');

:root {
  --bg: #5d0c1d;        /* brand maroon */
  --text: #ccb38d;      /* warm beige */
  --text-dim: #c6a98a;
  --line: rgba(215,191,163,.25);
  --hover: rgba(215,191,163,.12);
  --max: 1100px;

  /* unified hero pill width */
  --hero-card-max: 720px;

  /* form tokens */
  --field-bg: #3e0f19;
  --field-border: rgba(215,191,163,.35);
  --field-border-focus: rgba(215,191,163,.75);
  --placeholder: rgba(255,255,255,.5);
  --danger: #ffb3b3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Baloo 2', sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* layout container */
.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.container--column {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 4px;
}

/* ====================== HEADER ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  height: clamp(50px, 6vw, 80px);
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}
.nav-toggle .bar {
  height: 2px;
  width: 18px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 1px;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.nav-link {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav-link:hover {
  background: var(--hover);
  border-color: var(--line);
}
.nav-link.is-active {
  border-color: var(--text);
}

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    right: 10px;
    top: 60px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 60;
  }
  .nav-list.open { display: flex; }
}
@media (min-width: 801px) { .nav-toggle { display: none; } }

/* ====================== HERO ====================== */
.hero {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #4a141d url('/images/hero.jpg') center/cover no-repeat;
}
.hero .container {
  min-height: 44vh;  /* large hero, e.g. homepage */
  justify-content: flex-start;
  padding: clamp(24px, 6vw, 48px) 0;
}
.hero .hero-card {
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: min(var(--hero-card-max), 92%);
}
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
}
.hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(14px, 2vw, 18px);
}

/* Overlay variant (Contact) */
.hero.has-bg {
  background: #4a141d center/cover no-repeat;
  position: relative;
}
.hero.has-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}
.hero.has-bg .hero-card {
  position: relative;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-card .hero-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: rgba(199, 170, 124, 0.8);
  text-decoration: none;
  padding: 2px 0;
  border: 0;
}
.hero-card .hero-subtle-link:hover,
.hero-card .hero-subtle-link:focus {
  color: rgba(199, 170, 124, 1);
  text-decoration: underline;
}

/* === Short Hero for All Subpages === */
.hero.hero--sm .container {
  min-height: 16vh;        /* unified short height */
  padding: 16px 0 14px;
  align-items: flex-start;
}

/* Portfolio (same height, may have smaller text tweaks) */
.hero--portfolio .container {
  min-height: 16vh;
  padding: 16px 0 14px;
  align-items: flex-start;
}
.hero--portfolio h1 {
  font-size: clamp(26px, 3vw, 36px);
}
.hero--portfolio .hero-intro {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.hero--portfolio .hero-subtle-link {
  margin-top: 0.25rem;
}

/* ====================== MAIN CONTENT ====================== */
.page {
  width: min(var(--max), 92vw);
  margin: 24px auto;
  padding-bottom: 24px;
}
.page-title { margin: 16px 0 6px; }
.lead { margin: 0 0 8px; color: var(--text-dim); max-width: 70ch; }

/* ====================== CONTACT FORM ====================== */
.contact-form {
  width: 100%;
  max-width: 540px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.field { display: grid; gap: 6px; }
.contact-form label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.contact-form input,
.contact-form textarea {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--placeholder); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(215,191,163,.18);
}
.contact-form .error {
  min-height: 0.9em;
  color: var(--danger);
  opacity: .9;
}

/* ====================== BUTTONS ====================== */
.btn {
  appearance: none;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  transition: transform .12s ease, opacity .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--hover); }

.back-link { margin-top: 14px; }

/* ====================== FOOTER ====================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.foot-grid {
  width: min(var(--max), 92vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-copy {
  font-size: 13px;
  opacity: .85;
}
.foot-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.foot-socials .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(215, 191, 163, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.foot-socials .icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
}
.foot-socials .icon-btn svg[fill="currentColor"] { fill: var(--text); }
.foot-socials .icon-btn:hover {
  background: rgba(215, 191, 163, 0.15);
  transform: translateY(-2px);
}
.footer-links {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--text); }

/* ====================== UTILITIES ====================== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}
.icon-btn:hover { background: var(--hover); }

/* ====================== SHOP GRID ====================== */
.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px){ .product-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px){ .product-grid{ grid-template-columns: repeat(4, 1fr); } }

.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #4a141d;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215,191,163,.45);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.product-media {
  position: relative;
  background: #3e0f19;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-media .product-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}
.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title { margin: 0; font-size: 16px; line-height: 1.35; }
.product-price { font-size: 15px; color: var(--text); opacity: .95; }
.product-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

/* unified button look */
.btn,
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  background: transparent;
  color: #c7aa7c;
  border: 1px solid #c7aa7c;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover,
.btn:focus,
.btn:active {
  background-color: #b69568;
  color: #3e0f19;
  border-color: #b69568;
  text-decoration: none;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #c7aa7c;
  color: #3e0f19;
  border-color: #c7aa7c;
}

/* links */
a {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s ease;
}
a:hover, a:focus { color: var(--text-dim); text-decoration: none; }
a:visited { color: var(--text); }

/* === ABOUT PAGE COLLAGE === */
.container.about-section {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.about-text { flex: 1 1 55%; }
.about-images {
  flex: 1 1 45%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.about-images .collage {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 340px;
}
.about-images .collage .photo {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  filter: sepia(0.12) brightness(1.05) contrast(0.95) saturate(0.9);
}
.about-images .collage .photo--top {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  transform: rotate(-3deg) translate(18px, -12px);
  z-index: 2;
}
.about-images .collage .photo--bottom {
  position: absolute;
  top: 200px;
  right: 0;
  width: 100%;
  transform: rotate(5deg);
  opacity: 0.95;
}
.about-images .collage:hover .photo--top {
  transform: rotate(-3deg) translate(18px, -12px);
}

/* Tablet */
@media (max-width: 900px) {
  .container.about-section { gap: 1.5rem; }
  .about-text { flex: 1 1 50%; }
  .about-images { flex: 1 1 50%; }
  .about-images .collage {
    max-width: 600px;
    min-height: 300px;
  }
  .about-images .collage .photo--top {
    width: 88%;
    transform: rotate(-2deg) translate(10px, -8px);
  }
  .about-images .collage .photo--bottom {
    top: 120px;
    transform: rotate(4deg);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container.about-section {
    flex-wrap: wrap;
    justify-content: center;
  }
  .about-text { flex: 1 1 100%; }
  .about-images {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin-top: 5.8rem;
  }
  .about-images .collage {
    max-width: 700px;
    min-height: 500px;
  }
  .about-images .collage .photo--top,
  .about-images .collage .photo--bottom { border-radius: 2px; }
  .about-images .collage .photo--top {
    transform: rotate(-2deg) translate(10px, -6px);
  }
  .about-images .collage .photo--bottom {
    top: 100px;
    transform: rotate(3deg);
  }
}

/* ========================================================= */
/* === SHOP + PORTFOLIO CARD BUTTON FIX ==================== */
/* ========================================================= */

/* make sure the card is a column so buttons can sit at bottom */
.product-card,
.product-card--portfolio {
  display: flex;
  flex-direction: column;
}

/* make the card body fill the card */
.product-card .product-body,
.product-card--portfolio .product-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* button row: always at the bottom, side-by-side */
.product-card .product-actions,
.product-card--portfolio .product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;          /* pushes to bottom of card */
}

/* the actual buttons: thin, equal width, same height, not bold */
.product-card .btn,
.product-card .btn-secondary,
.product-card--portfolio .btn,
.product-card--portfolio .btn-secondary {
  flex: 1 1 0;               /* each gets 50% */
  text-align: center;
  font-size: 0.75rem;        /* thinner text */
  padding: 3px 8px;          /* thinner top/bottom */
  line-height: 1.1;
  min-height: 26px;          /* same height for both */
  font-weight: 400;          /* not bold in cards */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* mobile: allow wrapping if super narrow */
@media (max-width: 520px) {
  .product-card .product-actions,
  .product-card--portfolio .product-actions {
    flex-wrap: wrap;
  }
  .product-card .btn,
  .product-card .btn-secondary,
  .product-card--portfolio .btn,
  .product-card--portfolio .btn-secondary {
    min-height: 28px;
  }
}

.admin-nav {
  display: flex;
  gap: 16px;
  margin: 10px 0 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.admin-nav-link {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
}

.admin-nav-link:hover {
  background: rgba(255,255,255,0.10);
}

.admin-nav-logout {
  margin-left: auto;
  border-color: rgba(255,80,80,0.7);
  color: rgba(255,160,160,0.95);
}

.admin-nav-logout:hover {
  background: rgba(255,80,80,0.12);
}
