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

:root {
  --orange: #f4a261;
  --orange-dark: #e76f51;
  --cream: #fdf6ec;
  --dark: #2d3748;
  --muted: #718096;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--orange);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cat-logo { font-size: 1.75rem; }

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

/* ── Main layout ─────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hero-image { flex-shrink: 0; display: flex; align-items: flex-end; gap: 0.5rem; }

.cat-img {
  width: 180px;
  height: 180px;
}

.cat-img--small {
  width: 120px;
  height: 120px;
}

.hero-text h1 {
  font-size: 2.25rem;
  color: var(--orange-dark);
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-actions { margin-top: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--orange-dark);
  color: white;
}

.btn-primary:hover {
  background: #c25e3e;
  transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────────── */
.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--orange-dark);
}

.card p { color: var(--muted); font-size: 0.9rem; }

/* ── Gallery ─────────────────────────────────────────────────── */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
}

.page-header p { color: var(--muted); font-size: 1.05rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gallery-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s;
}

.gallery-card:hover { transform: translateY(-4px); }

.gallery-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; }

.gallery-card p {
  font-weight: 600;
  color: var(--dark);
}

/* ── About ───────────────────────────────────────────────────── */
.about-section {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-section h1 {
  font-size: 2rem;
  color: var(--orange-dark);
  margin-bottom: 1.25rem;
}

.about-cat-img { margin-bottom: 1.25rem; }

.about-section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.divider {
  font-size: 1.25rem;
  margin: 1.25rem 0;
  color: var(--orange);
}

.about-actions { margin-top: 1.25rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: white;
  font-weight: 600;
}

/* ── Login ───────────────────────────────────────────────────── */
.login-box {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 2rem auto;
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.login-header h1 {
  font-size: 1.75rem;
  color: var(--orange-dark);
  margin-bottom: 0.4rem;
}

.login-header p { color: var(--muted); }

.login-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.btn-full { width: 100%; text-align: center; }

.nav-logout {
  opacity: 0.75;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { flex-direction: column; text-align: center; }
  .cat-img { width: 130px; height: 130px; }
  .hero-text h1 { font-size: 1.6rem; }
}
