:root {
  --bg: #0a0e14;
  --bg-elev: #0f131aee;
  --card: #0c1117;
  --text: #e7e5e4;
  --muted: #a1a1aa;
  --accent: #c9a86a;       /* warm gold */
  --accent-2: #e6d3a7;     /* light gold */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(201,168,106,0.12), transparent 50%),
    radial-gradient(1200px 800px at 90% 20%, rgba(230,211,167,0.10), transparent 50%),
    var(--bg);
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 28px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 10px rgba(0,0,0,.35);
}

.brand-name { font-size: 18px; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: .9;
}

.nav a.button {
  text-decoration: none;
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.nav a.button:hover { transform: translateY(-1px); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  min-height: 56vh;
  display: grid;
  place-items: center;
  margin-top: 12px;
  background: #0b1020;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  background:
    linear-gradient(to bottom, rgba(10,14,20,0.3), rgba(10,14,20,0.85)),
    url("../images/K911ATX.png") center/cover no-repeat;
  filter: saturate(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(36px, 6vw, 64px);
}

.hero p {
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
}

.hero .cta {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
}

.button {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(161,161,170,0.35);
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid rgba(161, 161, 170, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: -48px;
  backdrop-filter: blur(8px);
}

.card h2 { margin-top: 0; }

.lead {
  color: var(--muted);
  line-height: 1.7;
}

/* Feature grid */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--card);
  border: 1px solid rgba(161,161,170,0.16);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.feature h3 { margin: 6px 0 6px; }

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Checks list */
.checks {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
  margin: 10px 0 0;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--accent-2);
}

/* Contact box */
.contact-box {
  display: grid;
  gap: 10px;
  place-items: start;
  margin-top: 8px;
}

.muted { color: var(--muted); }

/* Footer */
footer {
  opacity: 0.85;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}
/* Service Dog Details layout */
.details-flex {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.details-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.details-text {
  flex: 1;
}

.details-text h3 {
  margin-top: 0;
}

/* Language toggle pill style */
#lang-toggle {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 10px;
  cursor: pointer;
  border: 1px solid rgba(161,161,170,0.35);
  background: transparent;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
#lang-toggle:hover {
  background: var(--accent);
  color: #0b1020;
}

/* Legal card special style */
.legal {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

/* Wide Service Dog Details card */
/* Full-width row */
.feature.wide {
  grid-column: 1 / -1;
  width: 100%;
}

/* Two-column layout for Training + Commitments */
.feature.wide.two-cols {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr; /* default mobile */
}

.feature.wide.two-cols article {
  background: var(--card);
  border: 1px solid rgba(161,161,170,0.16);
  border-radius: 14px;
  padding: 18px;
}

@media (min-width: 720px) {
  .feature.wide.two-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.details-flex {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.details-photo-large {
  flex: 0 0 50%;       /* don’t grow, don’t shrink, always start at 50% */
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .details-flex {
    flex-direction: column;
    align-items: center;
  }
  .details-photo-large {
    flex: 0 0 auto;    /* reset flex sizing */
    max-width: 80%;   /* or 100% if you prefer full width */
  }
  .details-text {
    width: 100%;
  }
}

.details-text {
  flex: 1 1 50%;
  min-width: 260px;
}


