/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fdfcfa;
  --text: #2a2a2a;
  --text-light: #666;
  --accent: #8b5e6b;
  --accent-light: #a87585;
  --border: #e8e2dc;
  --card-bg: #fff;
  --nav-bg: #fff;
  --section-alt: #f7f3ee;
  --max-width: 900px;
  --font: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.3; }
h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.7rem; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

/* === Navigation === */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
nav .site-name {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
nav .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
nav .nav-links a { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-light); }
nav .nav-links a:hover, nav .nav-links a.active { color: var(--text); text-decoration: none; }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .hamburger { display: block; }
  nav .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--border); padding: 1rem; }
  nav .nav-links.open { display: flex; }
}

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem; }

/* === Hero === */
.hero {
  padding: 4.5rem 1.5rem;
  background: var(--section-alt);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.hero-text { flex: 1 1 0; text-align: left; }
.hero h1 { font-size: 2.9rem; margin-bottom: 0.4em; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-light); margin: 0 0 1.2rem; }
.hero-image { flex: 0 0 auto; }
.hero-image img {
  display: block;
  width: 360px;
  max-width: 100%;
  /* Portrait 3:4 frame. The source is 3:2 landscape with a lot of empty
     background on the left, so cover-cropping to portrait keeps her full
     height and trims dead space. 60% centres her in the frame. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 60% center;
  border-radius: 16px;
  border: 5px solid var(--border);
  box-shadow: 0 14px 44px -18px rgba(0, 0, 0, 0.35);
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: background 0.2s;
}
.cta:hover { background: var(--accent-light); text-decoration: none; }

/* === Language toggle === */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
}
.lang-toggle button {
  border: 0; background: none;
  padding: 4px 11px;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  color: var(--text-light); cursor: pointer; line-height: 1.6;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }

/* === Section === */
.section { padding: 3rem 0; }
.section-alt { background: var(--section-alt); padding: 3rem 0; }

/* === Dog cards === */
.dog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.dog-card h3 { color: var(--accent); }

/* === Contact Form === */
.contact-form { margin: 2rem 0; }
.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  background: var(--card-bg);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--accent-light); }

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 820px) {
  .hero-inner { flex-direction: column; gap: 2rem; }
  .hero-image img { width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-text { text-align: left; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
}
