/* Hansel Web Stylesheet - Aligned with App Design System v2 */

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

:root {
  /* Brand Colors */
  --bg: #FBF9F6;
  --surface: #FFFFFF;
  --surface-soft: #FFF8F2;
  --text: #1E1B18;
  --muted: #6F6A63;
  --orange: #E8622B;
  --orange-dark: #C44D1A;
  --orange-soft: #FFF0E8;
  --border: #E5DED4;
  --border-light: #EFEAE3;
  --shadow: 0 16px 40px rgba(30, 27, 24, 0.04);
  
  /* Semantic Colors */
  --danger: #C81E3A;
  --danger-soft: #FDEAEA;
  --success: #1E9E5C;
  --success-soft: #EAF7EF;
  --info: #2F80D6;
  --info-soft: #EAF1FF;
  --voluntariado: #8B5CF6;
  --voluntariado-soft: #F0EBFE;

  /* Border Radii */
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(232, 98, 43, 0.08), transparent 45rem), var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header, main > section, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(232, 98, 43, 0.25);
  font-weight: 900;
}

nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

nav a:hover, nav a.active {
  color: var(--orange);
}

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 98, 43, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 98, 43, 0.3);
}

.btn:active, button:active {
  transform: translateY(0);
}

.btn-small {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--surface-soft);
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn.danger {
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(200, 30, 58, 0.2);
}

.btn.danger:hover {
  background: #a5162e;
  box-shadow: 0 12px 28px rgba(200, 30, 58, 0.3);
}

.hero {
  padding-top: 72px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

.hero.home {
  min-height: calc(100vh - 78px);
}

.hero.inner {
  min-height: 500px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.chip.voluntariado {
  background: var(--voluntariado-soft);
  color: var(--voluntariado);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.hero-copy > p {
  max-width: 620px;
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 28px;
}

/* Hero UI Map Preview */
.hero-ui {
  position: relative;
  min-height: 680px;
}

.real-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 82%;
  height: 470px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.dog-photo {
  background-image: url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=1200&auto=format&fit=crop');
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 332px;
  height: 650px;
  padding: 12px;
  border-radius: 46px;
  background: #1E1B18;
  box-shadow: 0 30px 70px rgba(30, 27, 24, 0.2);
}

.screen {
  height: 100%;
  padding: 22px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
}

.top-alert {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-alert span {
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.top-alert h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.pet-avatar {
  margin-left: auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
}

.cat-photo {
  background-image: url('https://images.unsplash.com/photo-1518791841217-8f162f1e1131?q=80&w=400&auto=format&fit=crop');
}

.map {
  position: relative;
  height: 230px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(30, 27, 24, 0.04) 1px, transparent 1px),
              linear-gradient(rgba(30, 27, 24, 0.04) 1px, transparent 1px),
              #FFF0E8;
  background-size: 42px 42px;
  border: 1px solid var(--border-light);
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--orange);
}

.pin.main {
  left: 45%;
  top: 46%;
  background: var(--danger);
  box-shadow: 0 0 0 16px rgba(200, 30, 58, 0.12), 0 0 0 30px rgba(200, 30, 58, 0.06);
}

.pin.one {
  top: 22%;
  left: 62%;
}

.pin.two {
  bottom: 22%;
  left: 28%;
}

.map-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border-light);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-stats div {
  padding: 10px 6px;
  border-radius: 14px;
  background: white;
  text-align: center;
  border: 1px solid var(--border-light);
}

.mini-stats b, .mini-stats small {
  display: block;
}

.mini-stats b {
  font-size: 16px;
  color: var(--text);
}

.mini-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sighting {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border-light);
}

.sighting small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.screen button {
  width: 100%;
  margin-top: auto;
  height: 48px;
  font-size: 14px;
}

/* Card Structures */
.hero-card, .sos-card, article, .community-list, .cta, .form-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.photo-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.thumb {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
}

.dog2 { background-image: url('https://images.unsplash.com/photo-1583512603805-3cc6b41f3edb?q=80&w=400&auto=format&fit=crop'); }
.cat2 { background-image: url('https://images.unsplash.com/photo-1573865526739-10659fec78a5?q=80&w=400&auto=format&fit=crop'); }
.dog3 { background-image: url('https://images.unsplash.com/photo-1561037404-61cd46aa615b?q=80&w=400&auto=format&fit=crop'); }
.vet { background-image: url('https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?q=80&w=400&auto=format&fit=crop'); }
.shop { background-image: url('https://images.unsplash.com/photo-1601758125946-6ec2ef64daf8?q=80&w=400&auto=format&fit=crop'); }
.groom { background-image: url('https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?q=80&w=400&auto=format&fit=crop'); }

.sos-block, .split {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 54px;
}

.sos-card {
  padding: 34px;
  background: var(--danger-soft);
  border-color: #F7C9CB;
}

.sos-card h3 {
  color: var(--danger);
  font-size: 34px;
  margin-bottom: 12px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.cards, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

article {
  padding: 28px;
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange-dark);
}

.community-list {
  padding: 24px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.list-head h3 {
  margin: 0;
}

.list-head span {
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
}

.case-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-row:hover {
  transform: translateX(4px);
  border-color: var(--orange-soft);
}

.case-row + .case-row {
  margin-top: 12px;
}

.case-row div:nth-child(2) {
  flex: 1;
}

.case-row b, .case-row small {
  display: block;
}

.case-row b {
  font-weight: 700;
}

.case-row small {
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid div {
  min-height: 72px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(30, 27, 24, 0.02);
}

.service-grid div::after {
  content: '›';
  font-size: 20px;
  color: var(--muted);
  font-weight: 300;
}

.service-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-link-content svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  stroke-width: 2.2;
}

/* Call to Action */
.cta {
  margin-top: 60px;
  margin-bottom: 80px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 34px;
}

.download {
  max-width: var(--max);
}

.cta form {
  display: flex;
  gap: 12px;
}

/* Form Styles */
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  background: white;
}

textarea {
  min-height: 120px;
  padding-top: 16px;
  resize: vertical;
}

.form-section {
  padding-top: 60px;
  padding-bottom: 90px;
}

.form-card {
  max-width: 760px;
  margin: auto;
  padding: 34px;
}

.business-form {
  display: grid;
  gap: 18px;
}

.business-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feedback-success {
  background: var(--success-soft);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  display: none;
}

/* FAQ styles */
.faq {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq details {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--orange-soft);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.faq p {
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Blog styles */
.blog-img {
  height: 180px;
  border-radius: 16px;
  background: url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?q=80&w=700&auto=format&fit=crop') center/cover;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}

.blog-grid a {
  color: var(--orange);
  font-weight: 800;
}

.blog-grid a:hover {
  color: var(--orange-dark);
}

/* Verified Professional styles */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Footer */
footer {
  min-height: 120px;
  padding-bottom: 46px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
  border-top: 1px solid var(--border-light);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--orange);
}

/* Media Queries */
@media (max-width: 980px) {
  nav {
    display: none;
  }
  
  .hero, .sos-block, .split, .cta {
    grid-template-columns: 1fr;
  }
  
  .hero-ui {
    min-height: 740px;
  }
  
  .real-photo {
    width: 100%;
  }
  
  .phone {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .cards, .blog-grid, .service-grid {
    grid-template-columns: 1fr;
  }
  
  .cta form, .actions {
    flex-direction: column;
  }
  
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  
  .btn, button {
    width: 100%;
  }
  
  footer {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
