/* ============================================
   Annie Urstad, LPC-A — Design System
   Palette: warm sand, terracotta, sage, taupe
   Type: Fraunces (display) + Source Sans 3 (body)
   ============================================ */

:root {
  --sand: #EFEFE6;
  --sage-bg: #DDE5D8;
  --ink: #3D3A35;
  --clay: #A8765A;
  --clay-deep: #8C5F46;
  --sage: #6F8068;
  --sage-light: #E7ECE3;
  --taupe: #D9CFC1;
  --white: #FFFFFF;
  --ink-soft: #6B6760;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, sans-serif;

  --max-width: 1140px;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.125rem;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38em;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-deep); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--sand); }

.btn-light { background: var(--white); color: var(--clay-deep); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* ---------- Form inputs ---------- */

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  width: 100%;
  padding: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(168, 118, 90, 0.15);
}

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--taupe);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo .credential {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clay-deep);
  letter-spacing: 0.08em;
  vertical-align: super;
  margin-left: 0.25rem;
}

nav.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav.main-nav a:hover { color: var(--clay-deep); }
nav.main-nav a.active { color: var(--clay-deep); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  nav.main-nav.open { display: block; }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--taupe);
    margin-top: 0.75rem;
  }

  nav.main-nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--taupe);
  }

  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }

  .nav-cta .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero h1 { margin-bottom: var(--space-md); }
.hero h1 em { font-style: italic; color: var(--clay-deep); }
.hero .lede { margin-bottom: var(--space-md); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* Hero photo — merged definition, no duplicate */
.hero-photo {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .hero { padding-top: var(--space-lg); }
  .hero-photo { max-width: 300px; }
}

/* Photo frame */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* ---------- Entrance Animations ---------- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .container > div:first-child > * {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.hero .container > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero .container > div:first-child > *:nth-child(2) { animation-delay: 0.15s; }
.hero .container > div:first-child > *:nth-child(3) { animation-delay: 0.25s; }
.hero .container > div:first-child > *:nth-child(4) { animation-delay: 0.35s; }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero .container > div:first-child > *,
  .hero-photo,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ---------- Sections ---------- */

section { padding: var(--space-xl) 0; }

@media (max-width: 640px) {
  section { padding: var(--space-lg) 0; }
  .hero { padding: var(--space-lg) 0 var(--space-md); }
}

.section-sand { background: var(--sand); }
.section-white { background: var(--sage-bg); }

.section-clay {
  background: var(--clay);
  color: var(--white);
}

.section-clay h2,
.section-clay h3 { color: var(--white); }

.section-clay .eyebrow {
  color: var(--sand);
  opacity: 0.85;
}

.section-header {
  max-width: 42em;
  margin-bottom: var(--space-lg);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grids / Cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Tablet: grid-3 goes 2 col */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: everything 1 col */
@media (max-width: 600px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.card h3 { margin-bottom: 0.5rem; }

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--clay);
}

/* Specialty tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.tag {
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Voice / Quote block ---------- */

.voice-block {
  border-left: 3px solid var(--clay);
  padding-left: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 42em;
}

/* ---------- Announcement banner ---------- */

.banner {
  background: var(--sage);
  color: var(--white);
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.banner h3 { color: var(--white); margin-bottom: 0.25rem; }
.banner p { margin: 0; opacity: 0.95; }

/* ---------- Testimonial Cards ---------- */

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--clay);
  opacity: 0.4;
}

.testimonial-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-source {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  padding-top: 0.75rem;
  border-top: 1px solid var(--taupe);
}

/* ---------- FAQ accordion ---------- */

.faq-item { border-bottom: 1px solid var(--taupe); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question .icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--clay);
}

.faq-question[aria-expanded="true"] .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
  max-width: 42em;
}

/* ---------- Approach photo ---------- */

.approach-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.approach-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) saturate(85%) brightness(0.97);
}

.approach-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(168,118,90,0.12) 0%, rgba(111,128,104,0.15) 100%);
  pointer-events: none;
}

/* ---------- Outside photos strip ---------- */

.outside-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.outside-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.outside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.outside-photo:hover img { transform: scale(1.03); }

@media (max-width: 600px) {
  .outside-photos { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: var(--space-lg) 0 var(--space-md);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 860px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

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

footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}

footer .logo { color: var(--sand); margin-bottom: 0.75rem; }
footer p, footer a { color: var(--taupe); font-size: 0.92rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; }
footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #54504A;
  padding-top: var(--space-md);
  font-size: 0.83rem;
  color: #9A968F;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  max-width: 60em;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  color: #9A968F;
}

/* ---------- Page header ---------- */

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.page-header .eyebrow { text-align: center; }
.page-header .lede { margin: 0 auto; text-align: center; }

/* ---------- Process / steps ---------- */

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clay);
  font-weight: 600;
}

/* ---------- Utility ---------- */

.center-text { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-soft { color: var(--ink-soft); }

.divider {
  border: none;
  border-top: 1px solid var(--taupe);
  margin: var(--space-lg) 0;
}

/* ---------- Mobile nav animation ---------- */

@media (max-width: 860px) {
  nav.main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: block !important;
  }

  nav.main-nav.open {
    max-height: 500px;
  }
}

/* ---------- Scroll to top button ---------- */

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--clay-deep);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ---------- Print stylesheet ---------- */

@media print {
  header.site-header,
  .banner,
  .scroll-top-btn,
  .hero-actions,
  .btn,
  footer.site-footer,
  .reveal { display: none !important; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  section {
    padding: 1rem 0;
    background: #fff !important;
  }

  h1, h2, h3 { color: #000; page-break-after: avoid; }

  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .container { max-width: 100%; padding: 0 1rem; }
}

/* ---------- Clickable cards ---------- */

.card-link {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}
