/* New Zealand Tattooists Guild Inc. — site styles
   Palette pulled from the guild emblem. */

:root {
  --teal:        #0F5A6F;   /* primary petrol teal (from logo) */
  --teal-dark:   #0A4453;   /* depth / footer */
  --teal-deep:   #072F3B;   /* near-black teal for text */
  --accent:      #5FB2BF;   /* light teal glow accent */
  --cream:       #F5F0E6;   /* parchment background */
  --cream-soft:  #FBF8F1;   /* card background */
  --ink:         #14232A;   /* body text */
  --muted:       #4A5B62;   /* secondary text */
  --line:        #D9D2C4;   /* hairline borders */
  --white:       #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --radius: 5px;

  --shadow-sm: 0 1px 2px rgba(7,47,59,0.05);
  --shadow-md: 0 6px 20px -8px rgba(7,47,59,0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); font-weight: 500; margin: 0 0 0.35em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin: 0 0 0.55em; }
h3 { font-size: 1.28rem; margin: 0 0 0.45em; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--teal-deep); }

a { color: var(--teal); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

::selection { background: var(--accent); color: var(--teal-deep); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 1.1em;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--teal);
  border-bottom: 1px solid var(--teal-deep);
  box-shadow: inset 0 -3px 0 var(--accent), 0 1px 12px rgba(7,47,59,0.12);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-text { color: var(--white); font-family: var(--serif); font-size: 1.1rem; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.brand-text small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 4px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--white); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.85; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: opacity 0.18s var(--ease), border-color 0.18s var(--ease); }
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: none; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--white); border-radius: var(--radius); padding: 6px 11px; font-size: 1rem; line-height: 1; cursor: pointer; transition: background 0.18s var(--ease); }
.nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(95,178,191,0.16) 0%, rgba(95,178,191,0) 55%),
    linear-gradient(165deg, var(--teal) 0%, var(--teal-dark) 60%, var(--teal-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: 84px 28px 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.hero img.emblem { height: 148px; width: auto; margin: 0 auto 30px; display: block; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.28)); }
.hero h1 { color: var(--white); margin-bottom: 0.32em; }
.hero .lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.55rem); font-weight: 400; line-height: 1.4; color: var(--cream); max-width: 660px; margin: 0 auto 1.9em; opacity: 0.94; text-wrap: balance; }
.hero .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.01em; padding: 13px 30px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--white); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--cream-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-narrow { max-width: 720px; margin: 0 auto; }
.lead-text { font-size: 1.18rem; line-height: 1.6; color: var(--muted); }

/* Cards / pillars */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 44px; }
.card {
  background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--teal); border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfc6b4; }
.card:hover::before { background: var(--accent); }
.card h3 { color: var(--teal); margin-bottom: 0.5em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

/* Document list */
.doc-list { list-style: none; padding: 0; margin: 32px 0 0; }
.doc-list li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-soft); margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.doc-list li:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.doc-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--teal-deep); font-weight: 500; }
.doc-list a:hover { text-decoration: none; }
.doc-list .doc-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.doc-list .doc-cta { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); font-weight: 600; white-space: nowrap; transition: transform 0.2s var(--ease); }
.doc-list li:hover .doc-cta { transform: translateX(3px); }

/* Callout */
.callout {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream); border-radius: var(--radius); padding: 44px 40px; text-align: center;
  box-shadow: var(--shadow-md);
}
.callout h2, .callout h3 { color: var(--white); }
.callout p { color: var(--cream); opacity: 0.94; max-width: 620px; margin-left: auto; margin-right: auto; }

/* Legal / prose page */
.prose { max-width: 740px; margin: 0 auto; }
.prose > h2:first-child, .prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.9em; padding-bottom: 0.35em; border-bottom: 1px solid var(--line); }
.prose h3 { color: var(--teal); margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.4em; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.6em; padding-left: 0.2em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(15,90,111,0.35); }
.prose a:hover { text-decoration-color: var(--teal); }

/* Notice bar */
.notice { background: var(--accent); color: var(--teal-deep); text-align: center; font-size: 0.86rem; font-weight: 600; padding: 9px 16px; letter-spacing: 0.01em; }

/* ---------- Forms ---------- */
.form-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 600px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #c8bfad; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,90,111,0.14); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 20px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--cream); padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.site-footer a { color: var(--cream); opacity: 0.82; transition: opacity 0.18s var(--ease); }
.site-footer a:hover { opacity: 1; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.5; }
.site-footer li { margin-bottom: 10px; }
.footer-brand img { height: 62px; margin-bottom: 16px; }
.footer-brand p { opacity: 0.78; font-size: 0.86rem; line-height: 1.65; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; opacity: 0.72; }
.footer-bottom .credit { opacity: 0.9; }
.footer-bottom .credit a { color: var(--accent); opacity: 1; }
@media (max-width: 560px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--teal-dark); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 3px solid var(--accent); box-shadow: 0 12px 20px -8px rgba(7,47,59,0.35); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 14px 28px; opacity: 1; border-bottom: none; }
  .nav-links a:hover, .nav-links a.active { border-bottom: none; background: rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 22px 66px; }
  .hero img.emblem { height: 122px; }
  section { padding: 56px 0; }
  .form-card { padding: 30px 24px; }
}
