/* ==========================================================================
   Tide & Tail Dog Walking Co.
   Navy, teal and sand gold, sampled from the logo. Mobile-first, breakpoints at 480 / 768 / 1024.
   ========================================================================== */

:root {
  /* Colors */
  --ink: #1c364f;
  --ink-deep: #122638;
  --sea: #327681;
  --accent-light: #dcc595;
  --accent: #c0a266;
  --accent-dark: #a3864f;
  --accent-text: #7a5f2c;
  --shimmer: #f6ead0;
  --paper: #fdf8f0;
  --sand: #f4ecdf;
  --stone: #e8ddca;
  --white: #ffffff;
  --text: #1a2a3a;
  --text-muted: #4b5a66;
  --text-on-dark: #f6efe3;
  --text-on-dark-muted: #bcc7cf;
  --line: #ddd2c0;
  --line-dark: rgba(255, 255, 255, 0.16);
  --input-border: #c8bba6;
  --success: #2d6a45;
  --error: #b3261e;
  --error-bg: #fbeceb;

  /* RGB channels for overlays */
  --ink-rgb: 28, 54, 79;
  --accent-rgb: 192, 162, 102;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2vw, 2.85rem);
  --fs-h3: 1.28rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(4rem, 3rem + 4vw, 6.5rem);
  --container-max: 1180px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-height: 72px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-photo: 0 18px 40px rgba(var(--ink-rgb), 0.22);
  --shadow-nav: 0 2px 18px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 16px rgba(var(--ink-rgb), 0.06), 0 1px 3px rgba(var(--ink-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--ink-rgb), 0.14), 0 10px 20px rgba(var(--ink-rgb), 0.08);
  --shadow-btn: 0 4px 15px rgba(var(--accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --focus-ring: 0 0 0 3px rgba(var(--accent-rgb), 0.4);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

a {
  color: var(--accent-text);
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 34rem;
}

.line {
  display: block;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

.placeholder {
  font-style: italic;
  opacity: 0.75;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-pressed);
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.9rem;
  font-size: 1.06rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--accent-text);
}

.text-link--light {
  color: var(--white);
}

.text-link--light:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--ink);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-badge {
  width: 132px;
  height: 132px;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Body font: both Fraunces ampersands are decorative curls that read as a squiggle */
.logo-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: solid, opaque panel */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: var(--space-md) var(--gutter) var(--space-xl);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-nav);
}

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

.nav-links {
  list-style: none;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-on-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.btn-nav {
  margin-top: var(--space-lg);
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-3xl);
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.85) 0%, rgba(var(--ink-rgb), 0.35) 55%, rgba(var(--ink-rgb), 0.55) 100%);
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 46rem;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-light);
}

.highlight {
  color: var(--accent-light);
  font-style: italic;
  font-weight: 600;
}

.hero-text {
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}

.hero-note {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  max-width: 30rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(var(--ink-rgb), 0.45);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-note strong {
  color: var(--accent-light);
}

/* ==========================================================================
   Marquee and area strip
   ========================================================================== */

.marquee {
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding-block: 1rem;
  border-top: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.marquee-track span::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-inline: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.area-strip {
  background: var(--accent);
  color: var(--ink);
}

.area-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-xl);
  padding-block: var(--space-md);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  gap: var(--space-2xl);
}

.services-photo {
  margin-top: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 34px;
  height: 34px;
  color: var(--sea);
  margin-top: 2px;
}

.service h3 {
  margin-bottom: var(--space-xs);
}

.service p {
  color: var(--text-muted);
}

.service .service-note {
  grid-column: 2;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-text);
}

/* ==========================================================================
   Rates (proof band)
   ========================================================================== */

.rates {
  background: var(--ink);
  color: var(--text-on-dark);
}

.rates-title {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);
  color: var(--white);
}

.accent {
  color: var(--accent-light);
  font-style: italic;
  font-weight: 600;
}

.rates-list {
  display: grid;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line-dark);
}

.rate {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line-dark);
}

.rate dt {
  flex: 0 0 6.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.rate-dollar {
  font-size: 0.55em;
  vertical-align: 0.55em;
  color: var(--accent-light);
}

.rate dd {
  color: var(--text-on-dark-muted);
}

.rate dd strong {
  display: block;
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 1.08rem;
}

.rates-fine {
  margin-top: var(--space-xl);
  max-width: 38rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Getting started
   ========================================================================== */

.start {
  background: var(--sand);
}

.start-grid {
  display: grid;
  gap: var(--space-xl);
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  gap: var(--space-xs) var(--space-xl);
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.step-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-text);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p:not(.step-label) {
  color: var(--text-muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.about-media {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
}

.about-detail {
  position: absolute;
  right: var(--space-md);
  bottom: 0;
  width: 32%;
  border: 5px solid var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
}

.about-copy p {
  margin-top: var(--space-md);
}

.about-copy .lead {
  color: var(--text);
}

.about-copy p:not(.lead) {
  color: var(--text-muted);
}

.about-copy .btn {
  margin-top: var(--space-xl);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  position: relative;
  padding-block: clamp(5rem, 4rem + 5vw, 8rem);
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.92) 0%, rgba(var(--ink-rgb), 0.7) 50%, rgba(var(--ink-rgb), 0.3) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  max-width: 40rem;
}

.cta-content p {
  margin-top: var(--space-md);
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lead);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--sand);
}

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-list {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  gap: 0.15rem;
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-text);
}

.contact-item dd {
  font-size: 1.08rem;
}

.contact-form-wrap {
  scroll-margin-top: var(--space-lg);
}

.form-panel {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}

.form-fields {
  display: grid;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: var(--fs-small);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field-hint {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--error);
}

.field-error::before {
  content: '! ';
}

.form-error {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
  background: var(--error-bg);
  border-left: 3px solid var(--error);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-success {
  text-align: center;
  padding-block: var(--space-2xl);
}

.form-success:focus {
  outline: none;
}

.form-success svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  padding: 10px;
  color: var(--white);
  background: var(--success);
  border-radius: 50%;
}

.form-success p {
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-muted);
  padding-top: var(--space-3xl);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand .footer-badge {
  margin-bottom: var(--space-md);
}

.footer-nav ul,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-contact li {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-lg);
  background: linear-gradient(var(--line-dark), var(--line-dark)) top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.footer-bottom a {
  color: var(--text-on-dark);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    grid-template-columns: 7rem 1fr;
  }
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(var(--ink-rgb), 0.9) 0%, rgba(var(--ink-rgb), 0.65) 40%, rgba(var(--ink-rgb), 0.1) 75%),
      linear-gradient(0deg, rgba(var(--ink-rgb), 0.5) 0%, transparent 35%);
  }

  .service {
    grid-template-columns: auto 1fr auto;
  }

  .service .service-note {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    padding-top: 0.3rem;
  }

  .rates-list {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line-dark);
  }

  .rate {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg) var(--space-xl) 0;
    border-bottom: 0;
  }

  .rate + .rate {
    padding-left: var(--space-lg);
    border-left: 1px solid var(--line-dark);
  }

  .rate dt {
    flex: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-links a {
    border-bottom: 0;
    min-height: 44px;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    width: 100%;
  }

  .btn-nav {
    margin-top: 0;
    width: auto;
    padding-inline: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .start-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* ==========================================================================
   Premium animations (motion allowed only)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals, gated on .js so content shows without JavaScript */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .service:nth-child(2),
  .step:nth-child(2) { transition-delay: 0.1s; }
  .service:nth-child(3),
  .step:nth-child(3) { transition-delay: 0.2s; }
  .service:nth-child(4) { transition-delay: 0.3s; }

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-out) 0.2s both;
  }

  .highlight {
    background: linear-gradient(100deg, var(--accent-light) 0%, var(--accent-light) 40%, var(--shimmer) 50%, var(--accent-light) 60%, var(--accent-light) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s both;
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 8s linear infinite;
  }

  /* Service icons */
  .js .service .service-icon {
    transform: scale(0);
  }

  .js .service.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-out) 0.3s both;
  }

  /* Rate counters */
  .js .rates-list.visible .rate dt {
    animation: pop-in 0.6s var(--ease-out) both;
  }

  .js .rates-list.visible .rate:nth-child(2) dt { animation-delay: 0.2s; }
  .js .rates-list.visible .rate:nth-child(3) dt { animation-delay: 0.4s; }

  .counter.stat-bounce {
    animation: stat-bounce 0.8s ease;
  }

  /* About photo slow zoom */
  .js .about-media .about-img {
    transform: scale(1.15);
  }

  .js .about-media.visible .about-img {
    animation: about-zoom 12s linear forwards;
  }

  /* Card depth */
  .form-panel:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
  }

  .services-photo img,
  .about-detail img {
    transition: transform var(--transition-slow);
  }

  .services-photo:hover img,
  .about-detail:hover img {
    transform: scale(1.05);
  }

  /* Micro-interactions */
  .contact-item:hover {
    transform: translateX(8px);
  }

  .footer-nav a:hover {
    transform: translateX(4px);
  }

  @keyframes hero-zoom-out {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
  }

  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes gold-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
  }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  }

  @keyframes nav-cta-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 6px 26px rgba(var(--accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  }

  @keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @keyframes icon-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }

  @keyframes pop-in {
    from { opacity: 0; transform: scale(0.5) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  @keyframes stat-bounce {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-10px); }
    30% { transform: translateY(0); }
    45% { transform: translateY(-5px); }
    60% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
  }

  @keyframes about-zoom {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .marquee-track {
    animation-duration: 12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .marquee-track span:nth-child(n + 9) {
    display: none;
  }

  .btn,
  .form-panel,
  .contact-item,
  .footer-nav a {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  }

  .btn-primary:hover {
    transform: none;
  }
}
