/* ==========================================================================
   Crafty Cajun Studios — site styles
   Static, dependency-free. Recreated from the design handoff.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #2c2420;
  --muted: #6d635a;
  --cream: #f7f0e1;
  --cream-2: #f2e8d4;
  --paper: #fffdf8;
  --orange: #e35a1c;
  --orange-600: #c34a11;
  --line: #e7ddc9;
  --shadow: 0 1px 2px rgba(44, 36, 32, .04), 0 12px 32px -18px rgba(44, 36, 32, .28);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

/* The hidden attribute must always win, even over display rules below
   (e.g. the mobile nav panel, which is display:flex when shown). */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--orange-600); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main { flex: 1; }

/* ---------- Animation ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.rise-in { animation: riseIn .6s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Header (sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 225, .86);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 9px;
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover {
  background: var(--cream-2);
  color: var(--ink);
  text-decoration: none;
}

.nav-contact {
  margin-left: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.nav-contact:hover {
  background: var(--orange-600);
  color: #fff;
  text-decoration: none;
}

/* Hamburger */
.mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.mobile-btn span { font-size: 20px; line-height: 1; }

/* Mobile nav panel */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 10px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--cream-2); text-decoration: none; }

/* Breakpoint: 720px */
@media (max-width: 720px) {
  .desktop-nav { display: none !important; }
  .mobile-btn { display: flex !important; }
}
@media (min-width: 721px) {
  .mobile-nav { display: none !important; }
}

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(227, 90, 28, .18));
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.02;
}

.hero-sub {
  margin: 0 auto 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--orange-600);
}

.hero-support {
  margin: 0 auto;
  max-width: 600px;
  font-size: 19px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-600); color: #fff; text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-600);
  text-decoration: none;
}

.btn-secondary--shadow { box-shadow: var(--shadow); }

/* What-we-do cards */
.cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* Etsy band */
.etsy-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
}

.etsy-panel {
  background: linear-gradient(180deg, var(--paper), var(--cream-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.etsy-copy { max-width: 560px; }

.etsy-copy h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.etsy-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.btn-primary--nowrap { white-space: nowrap; }

/* Contact */
.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 76px;
  text-align: center;
  scroll-margin-top: 76px;
}

.contact-section h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
}

.contact-support {
  margin: 0 auto 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

/* ==========================================================================
   Privacy Policy
   ========================================================================== */
.privacy-header {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--line);
}

.privacy-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}

.privacy-title {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
}

.privacy-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.badge strong { color: var(--ink); font-weight: 600; }

.privacy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  font-size: 17px;
  line-height: 1.72;
}

.privacy-body > p { margin: 0 0 16px; }

.privacy-body h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.privacy-body h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--orange-600);
}

/* The Third-Party Services provider sub-headings are a touch smaller/tighter */
.privacy-body h3.provider {
  margin: 20px 0 6px;
  font-size: 18px;
}

.privacy-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.privacy-body ul ul { margin: 7px 0 0; }

.privacy-body li { margin-bottom: 7px; }
.privacy-body li:last-child { margin-bottom: 0; }
.privacy-body ul ul li { margin-bottom: 5px; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.contact-card p { margin: 0 0 8px; }
.contact-card p:last-child { margin: 0; }
.contact-card .org { font-weight: 600; font-size: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #f3ece0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fffdf8;
}

.footer-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.footer-tagline {
  margin: 0;
  color: #b8ac9c;
  font-size: 15px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav a {
  color: #f3ece0;
  font-size: 15px;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  color: #9c9082;
  font-size: 14px;
}
