/* Buddy & Bella — blue + golden-retriever-gold palette */
:root {
  --navy: #16324F;
  --blue: #2E6DA4;
  --blue-light: #5B9BD5;
  --sky-tint: #EAF4FB;
  --border-blue: #CFE1EF;
  --gold: #E3A857;
  --gold-dark: #C98A32;
  --bg: #FBFAF7;
  --text: #1F2D3D;
  --text-muted: #58697A;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(22, 50, 79, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; margin: 0 0 0.5em; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tint { background: var(--sky-tint); }
.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  background: rgba(227, 168, 87, 0.15);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
}
.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 17px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 50, 79, 0.94);
  backdrop-filter: blur(6px);
  color: var(--white);
}
.nav-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links li { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.lang-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,50,79,0.35) 0%, rgba(22,50,79,0.55) 55%, rgba(15,34,54,0.92) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 72px;
  width: 100%;
}
.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 560px;
  color: rgba(255,255,255,0.92);
}
.hero-scroll {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s;
}
.hero-scroll:hover { background: rgba(255,255,255,0.12); }

/* Hero duo strip */
.hero-duo {
  background: var(--navy);
  padding: 28px 0;
}
.hero-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-duo-grid figure {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-duo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.hero-duo-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-duo-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* Intro quote */
.intro {
  text-align: center;
  padding: 96px 0;
}
.intro blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.9;
}
.intro .signoff {
  margin-top: 28px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Profile sections */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.profile.reverse .profile-photo { order: 2; }
.profile-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.profile-name {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-tag {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.profile-text p { color: var(--text); margin: 0 0 16px; }
.profile-text p:last-child { margin-bottom: 0; }

/* Story timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.timeline-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.timeline-card h3 {
  font-size: 18px;
  color: var(--navy);
}
.timeline-card p { color: var(--text-muted); font-size: 15px; margin: 0; }
.friendship-photos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.friendship-photos img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--sky-tint);
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.gallery-more {
  display: block;
  margin: 40px auto 0;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-more:hover { background: var(--blue); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--white);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Feedback */
.feedback-wrap {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  border: 1px solid var(--border-blue);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-blue);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--sky-tint);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.15);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.submit-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.submit-btn:hover { background: var(--gold-dark); color: var(--white); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-message.success { display: block; background: #E4F5E9; color: #1C6B3B; }
.form-message.error { display: block; background: #FBE7E7; color: #B23A3A; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.footer strong { color: var(--white); }
.footer .paw { color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 8px 0; }
  .nav-links a { display: block; width: 100%; }
  .nav-links .lang-toggle { margin-top: 4px; }
  .profile { grid-template-columns: 1fr; }
  .profile.reverse .profile-photo { order: 0; }
  .friendship-photos { grid-template-columns: 1fr; }
  .hero-duo-grid { grid-template-columns: 1fr; }
  .hero-duo-grid img { height: 220px; }
  .section { padding: 64px 0; }
  .feedback-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero { min-height: 78vh; }
  .hero-inner { padding-bottom: 48px; }
  .timeline-card { padding: 22px 18px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .gallery-grid img { height: 120px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* additions for rebuild */
.footer a.admin-link { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; }
.footer a.admin-link:hover { color: var(--gold); }
.hero-duo-grid figcaption .sub { display:block; font-size:12px; font-weight:500; opacity:0.85; }
