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

:root {
  --brown: #4B2C17;
  --brown-dark: #3A2110;
  --brown-light: #6B3F22;
  --blue: #3A5F8A;
  --blue-light: #4A7AA8;
  --cream: #F9F6F2;
  --cream-dark: #F0EBE3;
  --white: #ffffff;
  --text: #2C241B;
  --text-muted: #5C534A;
  --border: #E5DFD6;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(75, 44, 23, 0.08);
  --shadow-md: 0 4px 16px rgba(75, 44, 23, 0.1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--brown);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 900px;
}

.center {
  text-align: center;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brown);
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
}

.logo-text span {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  .main-nav.open {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(145deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--white);
  padding: 1.85rem 0 1.7rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.55rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.hero .btn {
  background: var(--white);
  color: var(--brown);
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.hero .btn:hover {
  background: var(--cream);
  color: var(--brown);
}

/* ===== Sections ===== */
.section {
  padding: 2.75rem 0;
  background: var(--white);
}

.section.alt {
  background: var(--cream-dark);
}

.section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.page-header {
  background: var(--cream-dark);
  padding: 1.75rem 0 1.35rem;
  border-bottom: 1px solid var(--border);
  border-top: none;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Cards & Grids ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--brown-light);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown);
  color: var(--brown);
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

.btn-blue {
  background: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-light);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== Mission / About bits ===== */
.mission-text {
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.dog-story {
  background: var(--cream);
  border-left: 4px solid var(--blue);
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.dog-story h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* ===== Services / Lists ===== */
.check-list,
.service-list {
  list-style: none;
  margin-top: 0.75rem;
}

.check-list li,
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brown);
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ===== Process steps ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  text-align: center;
  padding: 1.25rem 1rem;
}

.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--brown);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===== Advisors ===== */
.advisor-card h3 {
  color: var(--brown);
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.role {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.advisor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-dark);
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
}

.advisor-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== Resources index ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  text-decoration: none;
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--brown);
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.resource-card .read-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

/* ===== Article pages ===== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 1.25rem 1.4rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.chart-container {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.chart-container canvas {
  max-width: 100%;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== Calculator ===== */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58, 95, 138, 0.15);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row span {
  color: var(--text-muted);
}

.result-row strong {
  font-size: 1.3rem;
  color: var(--brown);
}

.calc-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===== Contact ===== */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--brown);
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
  color: var(--text);
}

/* ===== Notes & Footer ===== */
.note-box {
  background: var(--cream);
  border-left: 4px solid var(--blue);
  padding: 1.1rem 1.35rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.fiduciary-banner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.fiduciary-banner strong {
  color: var(--brown);
}

.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
  text-align: center;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.88;
  margin-top: 1rem;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.footer-links {
  margin: 0.75rem 0;
}

.footer-links a {
  margin: 0 0.75rem;
  font-size: 0.9rem;
}

/* Team & dog story */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.team-card {
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.team-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding-bottom: 0.25rem;
}
.team-card .read-more {
  margin-top: auto;
  padding-top: 0.75rem;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--blue);
}

.bio-headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1.25rem;
  border: 3px solid var(--blue);
}

.desk-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

.dog-story-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 600px) {
  .dog-story-layout {
    grid-template-columns: 1fr;
  }
}

.dog-story-layout img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.bio-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.page-header {
  padding: 2rem 0 1.5rem;
}

.page-header h1 {
  font-size: 1.7rem;
}


.disclosure-box {
  background: #f7f4ef;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brown);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.disclosure-box h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--brown);
}
.disclosure-box p { margin: 0 0 0.55rem; }
.disclosure-box p:last-child { margin-bottom: 0; }
.disclosure-box ul {
  margin: 0.35rem 0 0.55rem 1.1rem;
  padding: 0;
}
.disclosure-box li { margin-bottom: 0.25rem; }
.calc-important {
  background: #fff8f0;
  border: 1px solid #e0c9a8;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}
