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

/* ── Design tokens ── */
:root {
  --bg:        #0e0b07;
  --bg2:       #141009;
  --surface:   #1c1610;
  --surface2:  #241e14;
  --border:    #2e2416;
  --accent:    #c8791a;
  --accent-lt: #e09620;
  --text:      #eee8d8;
  --muted:     #8a7a60;
  --dim:       #504030;
  --radius:    12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, #1e1408 0%, #0e0b07 65%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Any plain inline text link inside body copy (not a styled button) — this is
   the fix for links rendering as default browser blue/purple: every link
   needs to land in a rule somewhere, this is the catch-all for prose links. */
.subtitle a, .about-text a, .contact-note a, p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.subtitle a:hover, .about-text a:hover, .contact-note a:hover, p a:hover {
  color: var(--accent-lt);
}

/* ══════════════════════════════════════
   BRAND SUB-NAV (Home / Gallery / Shop — the Kelleher Workshop site nav)
══════════════════════════════════════ */
.brand-nav {
  background: rgba(20, 16, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px clamp(16px, 5vw, 48px);
  flex-wrap: wrap;
}

.brand-nav-inner a {
  padding: 8px 22px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.brand-nav-inner a:hover {
  color: var(--accent);
  background: rgba(200, 121, 26, 0.1);
}

.brand-nav-inner a.active {
  color: #000;
  background: var(--accent);
}

/* ══════════════════════════════════════
   BRAND HERO (logo + tagline + primary CTA)
══════════════════════════════════════ */
.brand-hero {
  padding: 60px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(200, 121, 26, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
}

.brand-tagline {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  color: #1a1206;
  padding: 14px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(200, 121, 26, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(200, 121, 26, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 12.5px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(200, 121, 26, 0.08);
}

/* ══════════════════════════════════════
   SECTIONS (shared header treatment)
══════════════════════════════════════ */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 28px;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, #d4a060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

/* ── Filter controls ── */
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 121, 26, 0.08);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ══════════════════════════════════════
   ABOUT (home page)
══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-photo img {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CAROUSEL (home page showcase)
══════════════════════════════════════ */
.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.carousel-track {
  position: relative;
  height: 420px;
  background: var(--surface);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(200, 121, 26, 0.7);
}

.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

@media (max-width: 600px) {
  .carousel-track { height: 260px; }
}

/* ══════════════════════════════════════
   MAIN + GALLERY
══════════════════════════════════════ */
main {
  padding: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 0;
}

/* ── Card ── */
.card {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* Top shimmer bar on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, var(--accent-lt) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Gradient fade from image into card body */
.card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 138px;
  height: 62px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 121, 26, 0.55);
  box-shadow: 0 20px 48px rgba(200, 121, 26, 0.14), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Cards where the subject sits lower in the image */
.card-lower img {
  object-position: center 25%;
}

.card:hover img {
  transform: scale(1.06);
}

.card figcaption {
  padding: 14px 16px 16px;
}

.card h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.card:hover h3 {
  color: var(--accent);
}

.tag {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Badge for pieces that were sold/commissioned, overlaid on the image */
.sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Quieter than .sold-badge on purpose — this is informational, not urgent */
.concept-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.concepts-header {
  margin-top: 48px;
}

/* ══════════════════════════════════════
   SHOP
══════════════════════════════════════ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.shop-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 121, 26, 0.55);
  box-shadow: 0 20px 48px rgba(200, 121, 26, 0.14), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.shop-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.shop-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.shop-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.shop-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  flex: 1;
}

.buy-now-btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Stand-in for a shop-card image when a product hasn't been photographed yet */
.shop-card-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface2);
  color: var(--muted);
}

.placeholder-icon {
  font-size: 2.6rem;
}

.placeholder-label {
  font-size: 0.78rem;
  font-weight: 600;
}

/* Callout pointing custom-work inquiries at the homepage contact form */
.custom-callout {
  max-width: 620px;
  margin: 48px auto 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px clamp(20px, 5vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.custom-callout h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.custom-callout p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   REVIEWS
══════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 121, 26, 0.4);
}

.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}

.review-author {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.review-piece {
  font-weight: 500;
  color: var(--dim);
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 20px 0;
}

.review-form-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
}

.review-form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 14px;
}

/* ══════════════════════════════════════
   CONTACT — single centered card, not a split layout
══════════════════════════════════════ */
.contact-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px clamp(20px, 5vw, 40px) 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  width: 100%;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.form-field select option {
  background: var(--bg2);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 121, 26, 0.18);
}

.contact-form .submit-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  color: #1a1206;
  border: none;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  align-self: center;
  transition: all 0.2s ease;
  box-shadow: 0 10px 26px rgba(200, 121, 26, 0.3);
}

.contact-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(200, 121, 26, 0.42);
}

.contact-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-msg {
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
}

.form-msg.ok  { color: #7fd97f; }
.form-msg.err { color: #e88; }

.contact-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-email-row {
  text-align: center;
}

.direct-email {
  display: inline-block;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.direct-email:hover { color: var(--accent-lt); }

.contact-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-stage {
  max-width: 92vw;
  max-height: 86vh;
  position: relative;
}

.lb-stage img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.lb-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.lb-close, .lb-nav {
  position: absolute;
  background: rgba(200, 121, 26, 0.15);
  border: 1px solid rgba(200, 121, 26, 0.3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.lb-close:hover, .lb-nav:hover {
  background: rgba(200, 121, 26, 0.3);
}

.lb-close { top: 18px; right: 18px; z-index: 10001; font-weight: 700; }
.lb-nav   { top: 50%; transform: translateY(-50%); }
.lb-prev  { left: 14px; }
.lb-next  { right: 14px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 44px clamp(16px, 5vw, 48px) 26px;
  text-align: center;
  color: var(--dim);
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}

/* Fun icon-badge social buttons — round icon + label, lifts and glows on
   hover instead of sitting there as flat underlined text */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.footer-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.4rem;
  transition: all 0.25s ease;
}

.footer-social-btn:hover {
  color: var(--accent);
}

.footer-social-btn:hover .footer-social-icon {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(200, 121, 26, 0.3);
  background: rgba(200, 121, 26, 0.1);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--dim);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .card img { height: 160px; }
  .shop-card img,
  .shop-card-placeholder { height: 160px; }
  .controls { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .brand-logo { max-width: 260px; }
  .brand-hero { padding: 44px 0 36px; }
}

@media (max-width: 420px) {
  .brand-logo { max-width: 220px; }
}
