:root {
  --primary: #e07b39;
  --primary-dark: #c4622a;
  --bg: #fdf8f2;
  --surface: #ffffff;
  --text: #2d2118;
  --muted: #7a6855;
  --border: #e8ddd0;
  --success: #2d7a4f;
  --success-bg: #edfbf4;
  --error: #a31515;
  --error-bg: #fff0f0;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.logo {
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: .4rem;
}
.paw { font-size: 1.6rem; }
nav a {
  margin-left: 1.5rem; color: var(--text); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
nav a:hover { color: var(--primary); }

/* Main */
main.container { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }

/* Hero */
.hero {
  text-align: center; padding: 2.5rem 1rem 2rem;
}
.hero h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: .5rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* Dog grid */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.dog-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.dog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.dog-photo {
  width: 100%; height: 220px; overflow: hidden;
  background: #f0e8dc;
}
.dog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dog-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.dog-info { padding: 1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.dog-info h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.dog-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.tag {
  background: #f4ede3; color: var(--muted);
  padding: .15rem .6rem; border-radius: 999px; font-size: .8rem;
}
.dog-meta--large .tag { font-size: .9rem; padding: .25rem .8rem; }
.dog-desc { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: .75rem; }

/* Buttons */
.btn {
  display: inline-block; padding: .55rem 1.2rem; border-radius: 6px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Alerts */
.alert {
  padding: .75rem 1rem; border-radius: 6px;
  margin-bottom: 1rem; font-size: .95rem;
}
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* Dog detail */
.dog-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) { .dog-detail { grid-template-columns: 1fr; } }

.dog-detail__photo {
  width: 100%; border-radius: var(--radius); object-fit: cover;
  max-height: 420px;
}
.dog-detail__photo.dog-photo--placeholder {
  height: 280px; background: #f0e8dc;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.dog-detail__media { display: flex; flex-direction: column; gap: 1rem; }
.flyer-section { display: flex; flex-direction: column; gap: .5rem; }
.flyer-label { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.dog-flyer { width: 100%; border-radius: 6px; border: 1px solid var(--border); }

.dog-detail__info h1 { font-size: 2rem; margin-bottom: .75rem; }
.dog-description { color: var(--text); line-height: 1.8; margin: 1rem 0 1.5rem; white-space: pre-wrap; }

/* Inquiry form */
.inquiry-form-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.inquiry-form-section h2 { font-size: 1.2rem; margin-bottom: .25rem; }
.inquiry-form-section p { color: var(--muted); margin-bottom: 1rem; }
.inquiry-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-weight: 600; font-size: .9rem; }
.form-group input, .form-group textarea {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: .55rem .8rem; font-size: 1rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; }

/* Page header */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 2rem; margin-bottom: .25rem; }
.page-header p { color: var(--muted); }

.form-page { max-width: 560px; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1.25rem 0; color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--primary); text-decoration: none; }
