/* AirPaws Relocation — shared styles */

:root {
  /* Cool ink, soft off-white paper, fresh forest green accent */
  --ink: oklch(0.22 0.022 165);
  --ink-soft: oklch(0.42 0.020 165);
  --ink-mute: oklch(0.58 0.015 165);
  --paper: oklch(0.985 0.006 160);
  --paper-warm: oklch(0.965 0.012 160);
  --paper-deep: oklch(0.93 0.018 160);
  --sage: oklch(0.90 0.030 155);
  --sage-deep: oklch(0.55 0.055 155);
  /* Accent: kept under --terracotta name so existing rules work; now a deep eucalyptus green */
  --terracotta: oklch(0.52 0.080 165);
  --terracotta-deep: oklch(0.40 0.080 165);
  --line: oklch(0.86 0.012 160);
  --line-soft: oklch(0.93 0.008 160);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0;
}

.italic { font-style: italic; }

.hero-tagline {
  font-family: "Zilla Slab", "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--terracotta-deep);
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 18px;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-tagline { white-space: normal; font-size: 17px; }
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
  .site-header .container {
    padding: 0 20px;
  }
  .home-hero .contain {
    padding: 0 20px;
  }
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* Site chrome */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand--inset {
  gap: 0;
  font-size: 26px;
  letter-spacing: -0.025em;
}
.brand--inset .brand__air,
.brand--inset .brand__aws {
  font-weight: 500;
  line-height: 1;
}
.brand--inset .brand__air { margin-right: 1px; }
.brand--inset .brand__aws { margin-left: 1px; }
.brand--inset .brand__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-weight: 400;
}
@media (max-width: 540px) {
  .brand--inset .brand__sub { display: none; }
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__mark svg { width: 20px; height: 20px; }

.brand span { white-space: nowrap; }
.brand strong { font-weight: 500; }
.brand em { font-style: normal; color: var(--ink-soft); font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 2px; }

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

.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}

/* Nav buttons (header) — match hero CTA style at smaller scale */
.nav--btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn--sm {
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  gap: 6px;
}
/* Selected nav button: white with subtle warm gradient */
.nav--btns .btn--primary {
  background: linear-gradient(180deg, var(--paper) 0%, oklch(0.96 0.012 75) 100%);
  color: var(--ink);
  border-color: oklch(0.88 0.012 75);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.9) inset, 0 1px 2px oklch(0 0 0 / 0.06);
}
.nav--btns .btn--primary:hover {
  background: linear-gradient(180deg, var(--paper) 0%, oklch(0.93 0.018 70) 100%);
  color: var(--ink);
}
/* Get-a-quote CTA — ink-filled like hero primary, slight separation from siblings */
.nav--btns .nav-cta {
  margin-left: 6px;
}
.nav--btns .nav-cta--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav--btns .nav-cta--ink:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  color: var(--paper);
}

/* Segmented pill nav with animated indicator */
.nav--seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: oklch(0.95 0.012 160);
  padding: 4px;
  border-radius: 999px;
  isolation: isolate;
}
.nav--seg a {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 220ms ease;
}
.nav--seg a:hover { color: var(--ink); }
.nav--seg a.is-active { color: var(--ink); }
.nav--seg a.is-on { color: var(--paper); }
.nav--seg__indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), width 320ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav--seg a:hover, .nav--seg a.is-active {
  text-decoration: none;
}
  white-space: nowrap;
}

.nav a:hover, .nav a.is-active {
  color: var(--ink);
  text-decoration: none;
}

.nav a.is-active {
  font-weight: 500;
}

.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: background 160ms ease;
}

.nav__cta:hover { background: var(--terracotta-deep); text-decoration: none; }
.nav__cta.is-active { background: var(--terracotta-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--terracotta-deep); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); text-decoration: none; }

.btn--terra {
  background: var(--terracotta);
  color: var(--paper);
}
.btn--terra:hover { background: var(--terracotta-deep); text-decoration: none; color: var(--paper); }

.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: oklch(0.85 0.015 70);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.site-footer h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer a { color: oklch(0.78 0.012 70); }
.site-footer a:hover { color: var(--paper); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid oklch(0.32 0.015 60);
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-grid p { color: oklch(0.78 0.012 70); font-size: 15px; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: oklch(0.65 0.012 70);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid oklch(0.32 0.015 60);
  display: grid;
  place-items: center;
  transition: all 160ms ease;
}

.social-row a:hover {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--paper);
}

.social-row svg { width: 16px; height: 16px; }

/* Generic placeholder image */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.88 0.02 70) 0 1px,
      transparent 1px 14px
    ),
    var(--paper-deep);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--paper);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 720px) {
  .nav { gap: 18px; }
  .nav--seg { padding: 3px; gap: 0; }
  .nav--seg a { padding: 7px 12px; font-size: 13px; }
  .nav--btns { gap: 6px; }
  .btn--sm { padding: 7px 12px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid a { word-break: break-word; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .site-header__inner {
    height: auto;
    padding: 12px 0;
  }
  .nav--btns {
    flex-wrap: wrap;
  }
  .nav--desktop {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 520px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px; 
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .footer-grid > div:last-child { 
    grid-column: 1 / -1; 
  }
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}

.mobile-menu {
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 49;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: all 160ms ease;
}

.mobile-menu__link:hover {
  background: var(--paper-warm);
  text-decoration: none;
}

.mobile-menu__link--cta {
  background: var(--ink);
  color: var(--paper);
  margin-top: 8px;
}

.mobile-menu__link--cta:hover {
  background: var(--terracotta-deep);
}
