/* Urban Dog Project - Shared Styles */

:root {
  --bg: #0b0c10;
  --panel: #0f1117;
  --card: #111319;
  --text: #e8ecef;
  --muted: #a9b0b6;
  --ring: #2a2f36;
  --accent: #78EE9B;
  --accent2: #5CC9FF;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

a {
  color: #5CC9FF;
  text-decoration: underline;
}

/* Navigation */
nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #cfd6dc;
}

nav a:hover {
  text-decoration: underline;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--ring);
  background: #1a1f24;
  display: block;
}

/* Typography */
h1 {
  font-size: 32px;
  margin: 8px 0 10px;
}

h2 {
  font-size: 22px;
  margin: 18px 0 10px;
}

p.lead {
  color: #a9b0b6;
  margin: 0 0 18px;
  max-width: 720px;
}

.trust {
  color: #9aa3ab;
  font-size: 14px;
}

.trust .dot {
  opacity: .5;
  margin: 0 8px;
}

/* Components */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  margin: 12px 0 20px;
}

.hero-copy {
  min-width: 0;
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.btn {
  display: inline-block;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 16px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #051015;
}

.btn-secondary {
  background: #1a1f24;
  color: #d7dde3;
  border: 1px solid var(--ring);
}

.note {
  color: #9aa3ab;
  font-size: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.card {
  background: #111319;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 20px 20px 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Forms */
label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #2b323a;
  background: #0e1116;
  color: #e8ecef;
  outline: none;
}

input:focus {
  border-color: #5CC9FF;
  box-shadow: 0 0 0 3px rgba(92,201,255,.25);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Utility */
.mock {
  background: #0c0e13;
  border: 1px solid var(--ring);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  place-items: center;
}

.mock img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.disclosure {
  color: #8b929a;
  font-size: 12px;
  margin-top: 10px;
}

.photo {
  width: 240px;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--ring);
  background: #1a1f24;
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Blog styles */
.post {
  background: #111319;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 18px 18px 20px;
  margin: 14px 0;
}

.meta {
  color: #8f97a0;
  font-size: 13px;
}

.prose p {
  color: #a9b0b6;
}

.prose h2 {
  margin-top: 22px;
}

/* Footer */
footer {
  margin-top: 36px;
  color: #a9b0b6;
  font-size: 13px;
}

footer a {
  color: #a9b0b6;
  text-decoration: underline;
}

/* ============================================
   MOBILE OPTIMIZATION - ADDED
   ============================================ */

/* Tablet adjustments */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .mock {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile phone optimization */
@media (max-width: 720px) {
  /* Typography adjustments */
  h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 20px;
  }
  
  /* Readable text on mobile */
  .prose p,
  p.lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  /* More spacing on mobile */
  .wrap {
    padding: 16px 16px 80px;
  }
  
  /* Grids become single column */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  /* Form optimization for mobile */
  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  input[type="text"],
  input[type="email"] {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  /* Button optimization */
  .btn {
    min-height: 48px; /* Better touch target */
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }
  
  .cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .cta .btn {
    width: 100%;
  }
  
  /* Navigation improvements */
  nav {
    font-size: 14px;
    gap: 12px;
  }
  
  .brand {
    font-size: 15px;
  }
  
  /* Card/Panel spacing */
  .card,
  .panel,
  .post {
    padding: 16px;
    border-radius: 12px;
  }
  
  /* Footer */
  footer {
    font-size: 12px;
    text-align: center;
  }
}

/* Small mobile phones */
@media (max-width: 400px) {
  h1 {
    font-size: 24px;
  }
  
  .wrap {
    padding: 12px 12px 70px;
  }
  
  .btn {
    font-size: 15px;
    padding: 11px 14px;
  }
}
