/* ===== Granger PyroGrafix — styles ===== */

:root {
  --bg: #f1eadd;
  --bg-alt: #ebe1d0;
  --card: #faf6ee;
  --ink: #2b2521;
  --walnut: #6f5640;
  --muted: #94836e;
  --line: #ddd0bb;
  --accent: #a85c34;
  --dark: #241f1b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Shared bits ===== */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head { text-align: center; margin-bottom: 14px; }
.section-head .eyebrow { margin-bottom: 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.18s ease, border-color 0.18s ease;
}
.btn-primary { padding: 15px 30px; background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { padding: 15px 30px; background: transparent; color: var(--ink); border: 1px solid #b9a98f; }
.btn-ghost:hover { border-color: var(--ink); }

.fig-title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.fig-medium { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(241, 234, 221, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1; }
.wordmark span { color: var(--accent); }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px -8px -8px 0;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
  display: block;
}

/* Mobile menu toggle styles */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}
.nav-cta { padding: 9px 18px; background: var(--accent); color: #fff !important; border-radius: 2px; }

/* Mobile responsive nav */
@media (max-width: 767px) {
  .nav {
    position: sticky;
    flex-wrap: wrap;
  }

  .hamburger { display: flex; }

  /* Hide nav links by default on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(241, 234, 221, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px, 5vw, 64px);
    width: 100%;
    box-sizing: border-box;
  }

  /* Show nav links when hamburger is open */
  .nav.is-open .nav-links { display: flex; }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  /* Remove border from last item */
  .nav-links a:last-child { border-bottom: none; }

  /* On mobile, style Contact link like other menu items */
  .nav-cta {
    padding: 12px 0 !important;
    background: none !important;
    color: var(--walnut) !important;
    border-radius: 0;
  }
}

/* ===== Hero ===== */
.hero { padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-copy { }
.hero-copy .eyebrow { letter-spacing: 0.32em; margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 26px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: #5d4a39; max-width: 30em; margin-bottom: 36px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  margin: 0;
  background: var(--card);
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(43, 37, 33, 0.45);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 4px; }
.hero-figure .fig-title { font-size: 20px; }
.hero-figure .fig-medium { letter-spacing: 0.12em; }

/* ===== Quote band ===== */
.quote-band {
  background: var(--dark);
  color: var(--bg);
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.quote-band p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.25;
  max-width: 16em;
  margin: 0 auto;
}
.quote-band span { color: var(--accent); }

/* ===== About ===== */
.about { padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px); scroll-margin-top: 80px; }
.about-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.about-photo {
  margin: 0;
  background: var(--card);
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -28px rgba(43, 37, 33, 0.4);
}
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy .eyebrow { margin-bottom: 16px; }
.about-copy h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin-bottom: 26px; }
.prose { font-size: 17px; line-height: 1.75; color: #5d4a39; display: flex; flex-direction: column; gap: 16px; max-width: 38em; }
.about-sign {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.sig { font-family: var(--serif); font-size: 26px; }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
}
.ig-link:hover { filter: brightness(0.9); }
.ig-link svg { flex-shrink: 0; }

/* ===== Gallery ===== */
.gallery { background: var(--bg-alt); padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px); scroll-margin-top: 72px; }
.gallery-inner { max-width: 1280px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 40px; }
.chip {
  font-family: inherit;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--walnut);
  border: 1px solid #c9b89c;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.grid { column-width: 250px; column-gap: 18px; }
.piece {
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--card);
  padding: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.piece:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -24px rgba(43, 37, 33, 0.5); }
.piece img { width: 100%; height: auto; }
.piece figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 4px 4px; }
.piece.is-hidden { display: none; }

/* ===== Commissions ===== */
.commissions { padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px); scroll-margin-top: 72px; }
.commissions-inner { max-width: 1080px; margin: 0 auto; }
.section-intro { text-align: center; font-size: 17px; line-height: 1.7; color: #5d4a39; max-width: 40em; margin: 0 auto 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.svc { background: var(--card); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.svc-kind { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.svc p { font-size: 16px; line-height: 1.55; color: #4a3a2c; flex: 1; }
.svc-price { font-family: var(--serif); font-size: 30px; color: var(--ink); padding-top: 6px; border-top: 1px solid #e6dac6; }
.svc-notes { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; margin-top: 40px; font-size: 14.5px; color: var(--walnut); }

/* ===== Contact ===== */
.contact { background: var(--dark); color: var(--bg); padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px); scroll-margin-top: 72px; text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; margin-bottom: 22px; }
.contact-lead { font-size: 17px; line-height: 1.7; color: #cbbda9; margin-bottom: 38px; }
.contact .btn-primary { padding: 17px 38px; font-size: 15px; letter-spacing: 0.05em; }
.contact-social { margin-top: 30px; display: flex; justify-content: center; }
.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--bg);
  padding: 9px 18px;
  border: 1px solid rgba(241, 234, 221, 0.28);
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.ig-pill:hover { border-color: var(--accent); color: #fff; }
.ig-pill svg { flex-shrink: 0; }

/* ===== Footer ===== */
.footer { background: #1c1815; color: #8a7a68; text-align: center; padding: 30px 20px; font-size: 13px; letter-spacing: 0.04em; }
.footer-mark { font-family: var(--serif); font-size: 16px; color: #cbbda9; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  animation: fade 0.2s ease both;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-body { max-width: 1000px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-body img { max-width: 100%; max-height: 78vh; height: auto; width: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); border: 8px solid var(--card); }
.lightbox-meta { display: flex; align-items: baseline; gap: 16px; color: var(--bg); }
.lb-title { font-family: var(--serif); font-size: 26px; }
.lb-medium { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #b09a82; }
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(241, 234, 221, 0.4);
  background: transparent;
  color: var(--bg);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* ===== Contact modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20, 16, 13, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: fade 0.2s ease both;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: #f7f1e6;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  padding: clamp(28px, 4vw, 44px);
  animation: rise 0.3s ease both;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d5c4a8;
  background: transparent;
  color: var(--walnut);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-form h3 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); margin-bottom: 8px; }
.modal-form .eyebrow { letter-spacing: 0.26em; margin-bottom: 12px; }
.modal-sub { font-size: 15px; line-height: 1.6; color: var(--walnut); margin-bottom: 26px; }
#contactForm { display: flex; flex-direction: column; gap: 18px; }
#contactForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
  font-weight: 600;
}
#contactForm input, #contactForm textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  background: #fffdf8;
  border: 1px solid #d5c4a8;
  border-radius: 2px;
  outline: none;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
#contactForm textarea { resize: vertical; min-height: 110px; }
#contactForm input:focus, #contactForm textarea:focus { border-color: var(--accent); }
.submit-btn { margin-top: 4px; }
.submit-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.form-error { font-size: 14px; color: #b23b2e; margin-top: -4px; }
.modal-success { text-align: center; padding: 26px 6px; }
.modal-success .check { font-family: var(--serif); font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.modal-success h3 { font-size: 30px; color: var(--ink); margin-bottom: 14px; }
.modal-success p { font-size: 15.5px; line-height: 1.65; color: #5d4a39; max-width: 30em; margin: 0 auto 26px; }
.modal-success .btn-primary { padding: 13px 30px; }
