/* The Dog Vibes — Global Styles */
/* Colors: #111 (near-black), #FFF, #F9F8F6 (warm off-white) */
/* Fonts: Montserrat (headings, UI), Source Sans Pro (body) */

/* Force light color scheme — prevents Android/OS dark mode from inverting colors */
:root {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* matches sticky header height */
}

.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (max-width: 768px) {
  .scroll-container {
    scroll-snap-type: y proximity;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 72px; /* matches mobile header height */
  }
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #111;
  background: #fff;
}

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

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: #111;
  color: #fff;
}

.section--dark a {
  color: #fff;
}

/* Ensure button text colors are never overridden by section link colors */
.section--dark a.btn--primary-inverted {
  color: #111;
}

.section--dark a.btn--primary {
  color: #fff;
}

.section--offwhite {
  background: #F9F8F6;
}

.text-center {
  text-align: center;
}

.narrow {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 36px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 1;
}

.btn--primary {
  background: #111;
  color: #fff;
}

.btn--primary-inverted {
  background: #fff;
  color: #111;
}

.btn--outline {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

.section--dark .btn--outline {
  color: #fff;
  border-color: #fff;
}

.section--dark .btn:hover {
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 1px 0 #e8e8e8, 0 4px 16px rgba(0,0,0,0.04);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header__logo img {
  height: 80px;
  width: auto;
}

.header__logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #111;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #111;
}

/* Ensure nav Book button text is white on its black background */
.nav a.btn--primary {
  color: #fff;
}

.nav a:hover {
  opacity: 0.7;
}

.nav .btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  margin: 5px 0;
  transition: 0.3s;
  /* Force visibility in all color modes */
  -webkit-appearance: none;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: #F9F8F6;
  justify-content: center;
}

/* When hero contains a trust-bar, switch to space layout so bar hits bottom */
.hero.snap-section {
  justify-content: flex-end;
}

.hero.snap-section > .container {
  margin-top: auto;
  margin-bottom: auto;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  margin-bottom: 24px;
}

.hero__content p {
  font-size: 18px;
  margin-bottom: 32px;
}

.hero__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Hero — Logo-centered variant (homepage) */
.hero--logo .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero__logo-feature {
  max-width: 360px;
  margin: 0 auto;
}

.hero__logo-feature img {
  width: 100%;
  height: auto;
}

.hero__content--centered {
  max-width: 700px;
}

.hero__content--centered h1 {
  margin-bottom: 24px;
}

.hero__content--centered p {
  font-size: 18px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .hero__logo-feature {
    max-width: 240px;
  }
}

/* Scroll Snap */
/* Applied to index.html and about.html sections for full-page snap scrolling.
   Each section fills the full viewport height. overflow-y: auto allows internal
   scrolling on content-heavy sections. Not applied to services.html due to
   consecutive zero-padding service cards. */
.snap-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  scroll-snap-align: start;
  overflow-y: auto;
  width: 100%;
}

/* Trust Bar */
.trust-bar {
  background: #111;
  color: #fff;
  padding: 18px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 100%;
  margin-top: auto;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Pain points list */
.pain-list {
  list-style: none;
  padding: 0;
}

.pain-list li {
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
  padding-left: 28px;
  position: relative;
}

.pain-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 600;
}

.pain-list li:last-child {
  border-bottom: none;
}

/* Service Cards */
.service-card {
  padding: 40px;
  border: 1px solid #000;
  margin-bottom: 32px;
}

.service-card__badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card__hook {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 16px;
}

.service-card__includes {
  list-style: disc;
  padding-left: 20px;
  margin: 16px 0;
}

.service-card__includes li {
  margin-bottom: 8px;
}

.service-card__meta {
  font-size: 14px;
  color: #555;
  margin: 16px 0;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item:first-child {
  border-top: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 20px;
}

/* Testimonial cycler */
.testimonial-cycler {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-cycler__quote {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  transition: opacity 1s ease, filter 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
}

.testimonial-cycler__quote.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.testimonial-cycler__quote blockquote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #111;
  margin: 0 0 16px;
  quotes: none;
}

.testimonial-cycler__quote cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
  color: #666;
}

/* Legacy testimonial styles (about page, etc.) */
.testimonial {
  padding: 32px;
  border-left: 4px solid #000;
  margin-bottom: 32px;
}

.testimonial blockquote {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid #fff;
  padding-left: 24px;
  font-size: 24px;
  font-style: italic;
  margin: 40px 0;
}

/* Credentials table */
.credentials-table {
  width: 100%;
  border-collapse: collapse;
}

.credentials-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.credentials-table td:first-child {
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  width: 200px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* How It Works steps */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.hiw-step__icon {
  width: 72px;
  height: 72px;
  background: #111;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  gap: 2px;
}

.hiw-step__num {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.7;
}

.hiw-step__emoji {
  font-size: 22px;
  line-height: 1;
}

.hiw-step h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.hiw-step p {
  font-size: 15px;
  color: #444;
}

.section--dark .hiw-step p {
  color: rgba(255,255,255,0.75);
}

.section--dark .hiw-step__icon {
  background: #fff;
}

.section--dark .hiw-step__icon svg {
  stroke: #111;
}

.section--dark .hiw-step__num {
  color: #111;
}

/* Booking steps (book.html) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: #fff;
  margin-bottom: 12px;
}

.step h4 {
  margin-bottom: 8px;
}

/* Trust signals list */
.trust-signals {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.trust-signals li {
  padding: 6px 14px;
  font-size: 14px;
  color: #555;
}

/* Tally placeholder */
.tally-placeholder {
  border: 2px dashed #ccc;
  padding: 60px 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding: 72px 0 32px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.8;
}

.footer__links h4,
.footer__contact h4 {
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links ul {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.6;
}

.footer__bottom a {
  margin-left: 16px;
}

/* Blog index page */
.blog-post-entry {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 48px;
  margin-bottom: 48px;
}

.blog-post-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.blog-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.blog-entry-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.blog-entry-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-entry-title a:hover {
  opacity: 0.7;
}

.blog-entry-excerpt {
  font-size: 17px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
}

.blog-read-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #111;
  text-decoration: none;
  border-bottom: 2px solid #111;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.blog-read-more:hover {
  opacity: 0.6;
}

/* Blog post pages */
.post-back {
  margin-bottom: 0;
}

.post-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s;
  padding: 8px 0; /* larger tap target */
}

.post-back a:hover {
  color: #111;
}

.post-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.post-lede {
  font-size: 20px;
  color: #555;
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.6;
}

.post-body {
  margin-top: 8px;
}

.post-body h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 17px;
}

.post-body ul {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.post-body ul li {
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 17px;
}

.post-body ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.post-body ol li {
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 17px;
}

.post-body hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 40px 0;
}

/* Legal pages */
.legal {
  padding: 80px 0;
}

.legal h1 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 36px;
  margin-bottom: 8px;
}

.legal .legal-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal table th,
.legal table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.legal table th {
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 6px;
}

/* Scroll hint — bouncing arrow on book.html hero */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .scroll-hint {
    display: none;
  }
}

.scroll-hint__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #111;
}

.scroll-hint__arrow {
  animation: scroll-hint-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Responsive */
@media (max-width: 968px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    height: 350px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* Show mobile nav toggle */
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .nav.open {
    display: flex;
  }

  .hiw-grid {
    grid-template-columns: 1fr 1fr;
  }

  .credentials-table td:first-child {
    width: auto;
  }
}

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

  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hiw-step {
    padding: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 24px;
  }

  .hero {
    padding: 48px 0;
  }

  .service-card {
    padding: 24px;
  }

  .pull-quote {
    font-size: 20px;
  }

  .header .container {
    height: 72px;
  }

  .header__logo img {
    height: 56px;
  }

  .nav {
    top: 72px;
  }

  /* Blog post — mobile reading improvements */
  .post-lede {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .post-body p,
  .post-body ul li,
  .post-body ol li {
    font-size: 16px;
    line-height: 1.8;
  }

  .post-body h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .post-body h3 {
    font-size: 17px;
  }

  /* Blog index — tighter mobile spacing */
  .blog-post-entry {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  .blog-entry-title {
    font-size: 22px;
  }

  /* Trust signals — stack on mobile */
  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .trust-signals li {
    padding: 4px 0;
    font-size: 13px;
  }

  /* Book page hero — tighter heading */
  h1.book-hero-h1 {
    font-size: 28px;
  }

  /* Credentials table — mobile scroll */
  .credentials-table {
    display: block;
    overflow-x: auto;
  }

  /* Footer bottom — center on small screens */
  .footer__bottom {
    text-align: center;
    align-items: center;
  }
}


/* Animation system — fade+lift reveal */

/* Hidden state: only applied when JS confirms it's running */
.js-loaded [data-reveal],
.js-loaded [data-stagger] > *,
.js-loaded [data-hero] {
  opacity: 0;
  transform: translateY(20px);
}

/* Visible state: triggered by JS adding .is-visible */
[data-reveal].is-visible,
[data-stagger] > *.is-visible,
[data-hero].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease,
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
