/* style.css — Fetch O'Clock */

/* ── Type Scale ── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Content widths ── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* ── Fonts ── */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ── LIGHT MODE (default) ── */
:root, [data-theme="light"] {
  --color-bg:             #FAF8F3;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F2EC;
  --color-surface-offset: #EDE9E0;
  --color-divider:        #DDD8CE;
  --color-border:         #D0C9BD;
  --color-text:           #1A2E0A;
  --color-text-muted:     #5C6B4F;
  --color-text-faint:     #9CA38F;
  --color-text-inverse:   #FAF8F3;
  --color-primary:        #2D5016;
  --color-primary-hover:  #1E3A0D;
  --color-primary-active: #142808;
  --color-primary-light:  #E2EDDA;
  --color-accent:         #D4A053;
  --color-accent-hover:   #C08E3E;
  --color-accent-active:  #A87B32;
  --color-accent-light:   #F5EBDA;

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 90 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 90 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.3 0.02 90 / 0.12);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --color-bg:             #111A0B;
  --color-surface:        #172210;
  --color-surface-2:      #1D2A16;
  --color-surface-offset: #1A2512;
  --color-divider:        #2A3822;
  --color-border:         #354A2B;
  --color-text:           #D5DBC8;
  --color-text-muted:     #8FA07E;
  --color-text-faint:     #5A6B4C;
  --color-text-inverse:   #111A0B;
  --color-primary:        #6AAF45;
  --color-primary-hover:  #7FC358;
  --color-primary-active: #5A9938;
  --color-primary-light:  #243B18;
  --color-accent:         #E8B86D;
  --color-accent-hover:   #F0C882;
  --color-accent-active:  #D4A053;
  --color-accent-light:   #2D2618;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #111A0B;
    --color-surface:        #172210;
    --color-surface-2:      #1D2A16;
    --color-surface-offset: #1A2512;
    --color-divider:        #2A3822;
    --color-border:         #354A2B;
    --color-text:           #D5DBC8;
    --color-text-muted:     #8FA07E;
    --color-text-faint:     #5A6B4C;
    --color-text-inverse:   #111A0B;
    --color-primary:        #6AAF45;
    --color-primary-hover:  #7FC358;
    --color-primary-active: #5A9938;
    --color-primary-light:  #243B18;
    --color-accent:         #E8B86D;
    --color-accent-hover:   #F0C882;
    --color-accent-active:  #D4A053;
    --color-accent-light:   #2D2618;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ── GLOBAL ── */
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

a {
  color: var(--color-primary);
  text-decoration-color: transparent;
  transition: color var(--transition-interactive), text-decoration-color var(--transition-interactive);
}
a:hover {
  text-decoration-color: currentColor;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ── HEADER / NAV ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: transparent;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}
.header--scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo svg {
  width: 36px;
  height: 36px;
}
.header__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero-specific: white logo */
.header:not(.header--scrolled) .header__logo {
  color: #FAF8F3;
}
.header:not(.header--scrolled) .nav__link,
.header:not(.header--scrolled) .theme-toggle {
  color: #FAF8F3;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.nav__link:hover {
  color: var(--color-primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: inherit;
}
.header:not(.header--scrolled) .nav-toggle {
  color: #FAF8F3;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.mobile-nav__link:hover {
  color: var(--color-primary);
}
.mobile-nav__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('./assets/hero-dog-walking.jpg') center 55%/cover no-repeat;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.12 0.03 140 / 0.7) 0%,
    oklch(0.12 0.03 140 / 0.55) 35%,
    oklch(0.12 0.03 140 / 0.45) 55%,
    oklch(0.12 0.03 140 / 0.7) 100%
  );
  z-index: -1;
}
.hero__content {
  padding: var(--space-8) var(--space-4);
  max-width: 700px;
}
.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero__logo svg {
  width: 80px;
  height: 80px;
  color: #FAF8F3;
}
.hero__title {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: #FAF8F3;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.hero__tagline {
  font-size: var(--text-lg);
  color: oklch(0.92 0.01 90);
  margin-bottom: var(--space-8);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #1A2E0A;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  letter-spacing: 0.02em;
}
.hero__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.5 0.1 70 / 0.3);
  color: #1A2E0A;
}
.hero__cta:active {
  transform: translateY(0);
}

/* ── SECTION SHARED ── */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
.section--alt {
  background: var(--color-surface-2);
}
.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
  align-items: center;
}
@media (min-width: 640px) {
  .about__grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
  }
}
.about__photo {
  display: flex;
  justify-content: center;
}
.about__img {
  width: 240px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-surface);
}
@media (min-width: 640px) {
  .about__img {
    width: 280px;
    height: 340px;
  }
}
.about__body {
  text-align: left;
}
@media (max-width: 639px) {
  .about__body {
    text-align: center;
  }
  .about__note {
    text-align: left;
  }
}
.about__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}
.about__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: left;
  line-height: 1.6;
}
.about__note svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-primary);
}

/* ── SERVICES/PRICING ── */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card--popular {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.service-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
[data-theme="dark"] .service-card__badge {
  color: #111A0B;
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}
.service-card__icon svg {
  width: 24px;
  height: 24px;
}
.service-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.service-card__duration {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.service-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.services__note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  text-align: center;
}
.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  color: var(--color-accent);
}
.step__number svg {
  width: 24px;
  height: 24px;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 300px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── AREA COVERED ── */
.area__content {
  max-width: var(--content-default);
  margin-inline: auto;
  text-align: center;
}
.area__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.area__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}
.area__tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}
.area__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── FAQ ── */
.faq {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.faq__item {
  border-bottom: 1px solid var(--color-divider);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
  transition: color var(--transition-interactive);
}
.faq__question:hover {
  color: var(--color-primary);
}
.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
}
.faq__item.active .faq__icon {
  transform: rotate(45deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}
.faq__answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── BOOKING CTA ── */
.booking {
  text-align: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
[data-theme="dark"] .booking {
  color: #111A0B;
}
.booking .section__title {
  color: var(--color-text-inverse);
}
[data-theme="dark"] .booking .section__title {
  color: #111A0B;
}
.booking__subtitle {
  font-size: var(--text-base);
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto var(--space-8);
}
.booking__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.booking__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #1A2E0A;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  letter-spacing: 0.02em;
}
.booking__btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.5 0.1 70 / 0.3);
  color: #1A2E0A;
}
.booking__btn:active {
  transform: translateY(0);
}
.booking__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.booking__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  text-decoration: underline;
  text-decoration-color: oklch(from var(--color-text-inverse) l c h / 0.4);
  transition: text-decoration-color var(--transition-interactive);
}
[data-theme="dark"] .booking__link {
  color: #111A0B;
  text-decoration-color: oklch(0.1 0 0 / 0.3);
}
.booking__link:hover {
  text-decoration-color: currentColor;
}
.booking__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-surface-2);
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.footer__inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
}
.footer__logo svg {
  width: 28px;
  height: 28px;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.footer__info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.footer__info a {
  color: var(--color-primary);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-decoration-color: transparent;
}
.footer__bottom a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

/* ── SCROLL REVEAL ── */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* ── SKIP LINK ── */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ── UTILITIES ── */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}
