/* findliloahome – light adopt-a-dog theme */

:root {
  --bg: #faf8f5;
  --bg-card: #fff;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --accent: #c17f59;
  --accent-soft: #e8c4ad;
  --accent-dark: #9d6344;
  --border: #e8e2dc;
  --success: #5a8f5a;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fredoka', sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}

.logo-icon {
  height: 1.75em;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

.logo:hover .logo-icon {
  transform: rotate(-12deg);
}

.lang-switch a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.lang-switch a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Main */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.container {
  margin-top: 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact success/error banner at top */
.contact-banner {
  text-align: center;
  padding: 0.9rem 1rem;
  font-weight: 600;
  margin: 0;
}

.contact-banner--success {
  background: rgba(90, 143, 90, 0.2);
  color: var(--success);
  border-bottom: 1px solid rgba(90, 143, 90, 0.35);
}

.contact-banner--error {
  background: rgba(180, 60, 60, 0.12);
  color: #b43c3c;
  border-bottom: 1px solid rgba(180, 60, 60, 0.25);
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-soft);
}

.intro p,
.closing {
  margin: 0 0 1rem;
  color: var(--text);
}

.requirements {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.req-list {
  margin: 0;
  padding-left: 1.25rem;
}

.req-list li {
  margin-bottom: 0.4rem;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  z-index: 101;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  z-index: 101;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-inner {
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Profile & Health */
.profile-section,
.health-section {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.profile-grid,
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem 1.25rem;
}

.profile-item,
.health-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-label,
.health-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-value,
.health-value {
  font-size: 1rem;
  color: var(--text);
}

.health-value {
  color: var(--success);
  font-weight: 600;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.video-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-item video {
  width: 100%;
  display: block;
}

.video-item video.video-no-controls {
  cursor: pointer;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 2rem 1rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(193, 127, 89, 0.4);
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Contact form */
.contact-section {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-success {
  background: rgba(90, 143, 90, 0.15);
  color: var(--success);
}

.contact-error {
  background: rgba(180, 60, 60, 0.1);
  color: #b43c3c;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

/* Honeypot: hidden from users, bots may fill it */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.contact-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-submit {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-sticker {
  display: block;
  margin: 0 auto 0.75rem;
  height: 80px;
  width: auto;
}

.site-footer p,
.site-footer .footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .hero-title {
    font-size: 3rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}
