/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:    #2a9d8f;
  --teal-dk: #21867a;
  --sand:    #f4f1eb;
  --warm:    #e9c46a;
  --text:    #264653;
  --muted:   #6b7280;
  --border:  #d1d5db;
  --white:   #ffffff;
  --radius:  10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.paw { font-size: 2rem; line-height: 1; }

.logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}

.tagline {
  font-size: .78rem;
  color: var(--muted);
}

nav { display: flex; align-items: center; gap: 1.5rem; }

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
nav a:hover { color: var(--teal); }

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--teal-dk) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #264653 0%, #2a9d8f 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content { max-width: 640px; margin: 0 auto; }

.hero h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--warm);
  color: var(--text);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* ── About ── */
.about {
  background: var(--sand);
  padding: 5rem 1.5rem;
  text-align: center;
}

.about h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--teal);
}

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

/* ── Form Section ── */
.form-section {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.form-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-align: center;
}

.form-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: .97rem;
}

/* Banners */
.success-banner, .error-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.success-banner { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.error-banner   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Form */
form { max-width: 700px; margin: 0 auto; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

legend {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  padding: 0 .5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: 1rem;
}

label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}

.req { color: #e63946; }

input, select, textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .6rem .85rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.15);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: #e63946;
}

textarea { resize: vertical; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: .9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s, transform .15s;
}
.btn-submit:hover:not(:disabled) { background: var(--teal-dk); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .9rem;
}

footer a { color: var(--warm); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-sub { margin-top: .35rem; font-size: .8rem; opacity: .6; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h2 { font-size: 1.7rem; }
  .field-row { grid-template-columns: 1fr; }
  nav a:not(.btn-nav) { display: none; }
}
