/* ============================================================
   Lost Then Found - Main Stylesheet
   Black (#1a1410) + Tan (#c49a3c) + Cream (#f5f0e8)
   Headings: Playfair Display
   Body: Nunito
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

/* -- Variables ----------------------------------------------- */
:root {
  --black:       #1a1410;
  --black-soft:  #2c2520;
  --tan:         #c49a3c;
  --tan-light:   #d4b060;
  --tan-dark:    #9a7630;
  --cream:       #f5f0e8;
  --cream-dark:  #ede7d8;
  --white:       #ffffff;
  --grey-light:  #f0ece4;
  --grey-mid:    #9a9488;
  --grey-dark:   #5a5550;
  --red:         #c0392b;
  --green:       #2d7d4e;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', -apple-system, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  --shadow-sm:   0 2px 8px rgba(26,20,16,0.08);
  --shadow-md:   0 4px 20px rgba(26,20,16,0.12);
  --shadow-lg:   0 8px 40px rgba(26,20,16,0.16);

  --max-width:   1100px;
  --nav-height:  72px;
}

/* -- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--cream); color: var(--black); line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* -- Typography ---------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* -- Logo wordmark - Nunito bold, Then in tan ---------------- */
.nav-logo { font-family: var(--font-body); font-size: 1.4rem; font-weight: 900; color: var(--cream); letter-spacing: -0.01em; }
.nav-logo .then { color: var(--tan); }
.footer-logo { font-family: var(--font-body); font-size: 1.3rem; font-weight: 900; color: var(--cream); }
.footer-logo .then { color: var(--tan); }

/* -- Layout -------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* -- Navigation ---------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--black); height: var(--nav-height); display: flex; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--cream); font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius); transition: background 0.15s; opacity: 0.8; }
.nav-links a:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.nav-links .btn-nav-cta { background: var(--tan); color: var(--black); opacity: 1; font-weight: 800; }
.nav-links .btn-nav-cta:hover { background: var(--tan-light); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }

/* -- Buttons ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 800; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: all 0.15s ease; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--tan); color: var(--black); border-color: var(--tan); }
.btn-primary:hover { background: var(--tan-light); border-color: var(--tan-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn-dark:hover { background: var(--black-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--cream); }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: rgba(245,240,232,0.5); }
.btn-outline-cream:hover { background: rgba(245,240,232,0.1); border-color: var(--cream); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* -- Stitched border (brand motif) --------------------------- */
.stitched { border: 2px solid var(--tan); border-radius: var(--radius-lg); outline: 4px dashed rgba(196,154,60,0.35); outline-offset: 4px; }
.stitched-black { border: 2px solid var(--black); border-radius: var(--radius-lg); outline: 4px dashed rgba(26,20,16,0.25); outline-offset: 4px; }

/* -- Cards --------------------------------------------------- */
.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.card-cream { background: var(--cream); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--cream-dark); }

/* -- Forms --------------------------------------------------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--black); }
label .optional { font-weight: 400; color: var(--grey-mid); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); background: var(--white); color: var(--black);
  font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(196,154,60,0.15); }
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.82rem; color: var(--grey-mid); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: var(--red); margin-top: 4px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; border: 2px solid var(--cream-dark); border-radius: 4px; padding: 0; cursor: pointer; accent-color: var(--tan); }
.checkbox-group label { margin-bottom: 0; font-weight: 400; font-size: 0.9rem; cursor: pointer; }

.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills input[type="radio"] { display: none; }
.radio-pills label { padding: 8px 18px; border: 2px solid var(--cream-dark); border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.15s; margin-bottom: 0; }
.radio-pills input:checked + label { background: var(--black); color: var(--cream); border-color: var(--black); }

/* -- Toggle switch ------------------------------------------- */
.toggle { position: relative; width: 48px; height: 26px; cursor: pointer; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--cream-dark); border-radius: 13px; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 4px; bottom: 4px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--tan); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* -- Alerts -------------------------------------------------- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 20px; border-left: 4px solid; }
.alert-success { background: #edf7f1; border-color: var(--green); color: #1d5934; }
.alert-error   { background: #fdf0ef; border-color: var(--red);   color: #922b21; }
.alert-info    { background: #fdf8ee; border-color: var(--tan);   color: var(--tan-dark); }

/* -- Stock banner -------------------------------------------- */
.stock-banner { background: var(--tan); color: var(--black); text-align: center; padding: 10px 20px; font-size: 0.9rem; font-weight: 700; }
.stock-banner.stock-none { background: var(--black); color: var(--cream); }
.stock-banner a { color: inherit; text-decoration: underline; }

/* -- Section backgrounds ------------------------------------- */
.bg-black { background: var(--black); color: var(--cream); }
.bg-black h1, .bg-black h2, .bg-black h3 { color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

/* -- Hero ---------------------------------------------------- */
.hero { background: var(--black); color: var(--cream); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(196,154,60,0.08) 0%, transparent 60%); pointer-events: none; }
.hero h1 { color: var(--cream); }
.hero h1 span { color: var(--tan); }

/* -- Owner login fixed button -------------------------------- */
.owner-login-btn { position: fixed; top: 16px; right: 16px; z-index: 200; background: rgba(26,20,16,0.85); color: var(--cream); padding: 10px 18px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(8px); border: 1px solid rgba(196,154,60,0.3); transition: all 0.15s; }
.owner-login-btn:hover { background: var(--black); border-color: var(--tan); }

/* -- Footer -------------------------------------------------- */
.site-footer { background: var(--black); color: var(--cream); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(245,240,232,0.65); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-family: var(--font-body); color: var(--tan); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(245,240,232,0.65); font-size: 0.9rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(245,240,232,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(245,240,232,0.4); font-size: 0.82rem; margin: 0; }

/* -- Utility ------------------------------------------------- */
.text-tan    { color: var(--tan); }
.text-muted  { color: var(--grey-mid); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.mt-1 { margin-top: 8px; }   .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* -- hCaptcha spacing ---------------------------------------- */
.h-captcha { margin: 16px 0; }

/* -- Responsive ---------------------------------------------- */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--black); padding: 20px; gap: 4px; box-shadow: var(--shadow-lg); z-index: 99; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
}
