/* Bailey the Frenchie — mobile-first styles */

:root {
  --cream: #fdf6ec;
  --ink: #3d2c29;
  --ink-soft: #6e5a55;
  --orange: #e76f51;
  --peach: #f4a261;
  --sand: #e9c46a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(61, 44, 41, 0.12);
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

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

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 44, 41, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

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

/* Hero */
.hero {
  position: relative;
  max-height: 72vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(to top, rgba(61, 44, 41, 0.55), rgba(61, 44, 41, 0.1));
  color: var(--white);
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-block: 0.5rem 1.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}

.btn:hover { background: #d45a3c; transform: translateY(-2px); }

/* Cards */
.cards {
  display: grid;
  gap: 1.2rem;
  padding-block: 2.5rem;
}

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

.card-emoji { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }

.card h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Teaser grid on home */
.teaser { padding-bottom: 3rem; }

.teaser h2 { margin-bottom: 1rem; text-align: center; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.teaser-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.teaser-grid img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s;
}

.teaser-grid a:hover img { transform: scale(1.03); }

/* Page headers */
.page-title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-top: 2rem;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  padding-bottom: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-item:hover img { transform: scale(1.03); }

#gallery-sentinel { height: 1px; margin-bottom: 3rem; }

/* Crisp copyright credit, sitting over the burned-in watermark */
.photo-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 7px;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(20, 12, 10, 0.5);
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 12, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.6rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.lightbox-close:hover,
.lightbox-nav:hover { opacity: 1; }

.lightbox-close { top: 0.5rem; right: 0.8rem; }

.lightbox-prev { left: 0.3rem; top: 50%; transform: translateY(-50%); }

.lightbox-next { right: 0.3rem; top: 50%; transform: translateY(-50%); }

/* About page */
.about-layout {
  display: grid;
  gap: 1.6rem;
  padding-bottom: 3rem;
}

.about-photo-wrap {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.about-text h2 { margin-top: 1.4rem; margin-bottom: 0.6rem; }

.about-text p { margin-bottom: 0.8rem; }

.stats { display: grid; gap: 0.5rem; }

.stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 1px 4px rgba(61, 44, 41, 0.08);
}

.stats dt { font-weight: bold; }

.stats dd { color: var(--ink-soft); text-align: right; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(61, 44, 41, 0.08);
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-email { margin-bottom: 0.35rem; }

.footer-email a {
  color: var(--orange);
  text-decoration: none;
  font-weight: bold;
}

.footer-email a:hover { text-decoration: underline; }

/* Contact form */
.hp-field { display: none !important; }

.contact-form {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: bold;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: normal;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(61, 44, 41, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.18);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .btn:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin: 0;
  font-weight: bold;
  min-height: 1.2em;
}

.form-status.ok { color: #2a9d8f; }
.form-status.err { color: #c0472b; }

.contact-fallback {
  text-align: center;
  color: var(--ink-soft);
  padding-bottom: 3rem;
}

.contact-fallback a { color: var(--orange); }

/* Larger screens */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about-layout { grid-template-columns: 5fr 7fr; align-items: start; }
}
