:root {
  --ink: #162c2d;
  --teal: #0d4f4d;
  --teal-2: #1e6a67;
  --cream: #fbf7ef;
  --paper: #fffdf9;
  --terracotta: #c96345;
  --gold: #e2a94b;
  --sage: #dce8df;
  --line: #dfe4de;
  --muted: #5e6d6c;
  --shadow: 0 18px 55px rgba(20, 45, 44, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--terracotta); font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 27px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(3rem, 7vw, 5.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 680px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border: 2px solid var(--teal); border-radius: 999px; background: var(--teal); color: white; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); background: var(--teal-2); box-shadow: 0 10px 28px rgba(13,79,77,.2); }
.btn.secondary { background: transparent; color: var(--teal); }
.btn.secondary:hover { background: #eef5f2; }
.btn.terracotta { border-color: var(--terracotta); background: var(--terracotta); }
.text-link { color: var(--teal); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.topbar { background: var(--ink); color: white; font-size: .84rem; }
.topbar .container { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { text-decoration: none; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,253,249,.95); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(22,44,45,.08); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { position: relative; display: flex; align-items: center; gap: 8px; min-height: 72px; text-decoration: none; }
.brand-mark { position: relative; z-index: 3; width: 76px; height: 96px; align-self: flex-end; flex: 0 0 auto; display: block; margin-top: -20px; margin-bottom: -8px; overflow: visible; color: transparent; font-size: 0; background: url("images/blackhat-cat-logo.png") center bottom / 92px 100px no-repeat; filter: drop-shadow(0 8px 10px rgba(22,44,45,.13)); transition: transform .25s ease; }
.brand-mark svg { display: none; }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-1deg); }
.brand-name { display: grid; line-height: 1; font-family: Georgia, serif; font-weight: 800; font-size: 1.26rem; letter-spacing: -.02em; }
.brand-name small { margin-top: 5px; font-family: Inter, sans-serif; font-size: .61rem; letter-spacing: .17em; text-transform: uppercase; color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links > a { font-size: .91rem; font-weight: 750; text-decoration: none; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--terracotta); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.35rem; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; background: #f4eadc; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,247,239,.99) 0%, rgba(251,247,239,.94) 31%, rgba(251,247,239,.2) 60%, rgba(251,247,239,0) 100%); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 1; width: min(610px, 55%); padding: 85px 0 110px; }
.hero h1 span { color: var(--terracotta); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-strip { position: relative; z-index: 2; margin-top: -42px; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.trust-item { padding: 25px 29px; display: flex; gap: 15px; align-items: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--teal); background: var(--sage); font-size: 1.35rem; }
.trust-item strong, .trust-item span { display: block; }
.trust-item span { color: var(--muted); font-size: .82rem; }
.section { padding: 108px 0; }
.section.soft { background: var(--cream); }
.section.dark { background: var(--teal); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.section-head p { max-width: 520px; color: var(--muted); }
.dark .section-head p, .dark .lead { color: rgba(255,255,255,.75); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon { margin-bottom: 24px; }
.card p { color: var(--muted); }
.card a { color: var(--teal); font-weight: 800; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 8vw, 105px); }
.photo-card { position: relative; }
.photo-card img { min-height: 520px; width: 100%; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.photo-card .stamp { position: absolute; right: -25px; bottom: 28px; width: 132px; height: 132px; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 900; border: 8px solid var(--paper); transform: rotate(-7deg); }
.check-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: start; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--sage); color: var(--teal); font-weight: 900; flex: 0 0 auto; }
.quote { padding: 34px; border-radius: var(--radius); background: rgba(255,255,255,.1); }
.quote p { font-family: Georgia, serif; font-size: 1.35rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 28px; border-radius: 22px; background: white; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 3px; }
.review cite { font-style: normal; color: var(--muted); font-size: .88rem; }
.cta { padding: 70px; display: flex; justify-content: space-between; align-items: center; gap: 40px; border-radius: 34px; background: var(--terracotta); color: white; overflow: hidden; }
.cta h2 { max-width: 700px; }
.cta .btn { background: white; border-color: white; color: var(--terracotta); flex: 0 0 auto; }

.page-hero { position: relative; padding: 95px 0 75px; background: var(--cream); overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::after { content: ""; position: absolute; z-index: 0; width: 440px; height: 440px; right: max(1vw, calc((100vw - 1160px)/2 - 55px)); top: -75px; background: url("images/blackhat-cat-logo.png") center/contain no-repeat; opacity: .04; pointer-events: none; }
.page-hero .lead { font-size: 1.2rem; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.service-row p { color: var(--muted); margin: 0; }
.service-row .icon { margin: 0; }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 25px; color: var(--gold); font-weight: 900; letter-spacing: .12em; }
.notice { padding: 22px 25px; border-left: 5px solid var(--gold); background: #fff8e8; color: #5d4b28; border-radius: 0 16px 16px 0; }
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.form-card { padding: 38px; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .83rem; font-weight: 800; }
input, select, textarea { width: 100%; padding: 14px 15px; border: 1px solid #cfd8d2; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(30,106,103,.18); border-color: var(--teal-2); }
textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: .8rem; }
.contact-list { display: grid; gap: 24px; margin: 35px 0; }
.contact-line { display: flex; gap: 16px; }
.contact-line strong, .contact-line span { display: block; }
.contact-line span { color: var(--muted); }
.map-card { position: relative; min-height: 390px; border: 10px solid white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background-color: #e9ede7; background-image: linear-gradient(28deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%), linear-gradient(95deg, transparent 45%, #fff 46%, #fff 50%, transparent 51%), linear-gradient(155deg, transparent 43%, #d0dfce 44%, #d0dfce 51%, transparent 52%); background-size: 260px 180px, 210px 270px, 380px 190px; }
.map-card::after { content: "Blackhat Animal Hospital\A3104 E Camelback Rd"; white-space: pre; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -44%); padding: 12px 16px; border-radius: 12px; color: white; background: var(--teal); font-weight: 800; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.pin { position: absolute; left: 50%; top: 39%; width: 28px; height: 28px; transform: translate(-50%,-50%) rotate(45deg); border-radius: 50% 50% 50% 0; background: var(--terracotta); box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.map-label { position: absolute; padding: 5px 8px; color: #63706a; background: rgba(255,255,255,.72); border-radius: 7px; font-size: .72rem; }
.footer { padding: 65px 0 25px; background: var(--ink); color: white; }
.footer .brand-mark { width: 64px; height: 79px; margin-top: -13px; margin-bottom: -4px; background-size: 74px 82px; filter: drop-shadow(0 7px 8px rgba(0,0,0,.22)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; }
.footer h3 { font-family: Inter, sans-serif; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer a { display: block; width: fit-content; color: rgba(255,255,255,.77); text-decoration: none; margin: 8px 0; }
.footer p { color: rgba(255,255,255,.7); }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font-size: .76rem; }
.success { min-height: 55vh; display: grid; place-items: center; padding: 100px 0; text-align: center; }
.success-card { max-width: 650px; padding: 55px; border-radius: 30px; background: var(--cream); box-shadow: var(--shadow); }
.success-icon { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 28px; border-radius: 50%; background: var(--sage); color: var(--teal); font-size: 2.2rem; }

@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 92px; padding: 22px; flex-direction: column; align-items: stretch; background: white; border-radius: 20px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { min-height: 660px; align-items: end; }
  .hero::after { background: linear-gradient(0deg, rgba(251,247,239,1) 3%, rgba(251,247,239,.9) 47%, rgba(251,247,239,0) 80%); }
  .hero-image { object-position: 64% center; }
  .hero-copy { width: 100%; padding: 280px 0 90px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); max-width: 650px; }
  .trust-grid, .cards, .review-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .split, .form-wrap { grid-template-columns: 1fr; }
  .photo-card img { min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar .container { justify-content: center; }
  .topbar .hours { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand { gap: 4px; }
  .brand-mark { width: 61px; height: 80px; margin-top: -13px; margin-bottom: -7px; background-size: 72px 84px; }
  .page-hero::after { width: 300px; height: 300px; right: -90px; top: 10px; }
  .section { padding: 75px 0; }
  .section-head { display: block; }
  .cards, .service-list, .steps, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta { padding: 38px 28px; display: block; }
  .cta .btn { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .form-card { padding: 25px; }
  .photo-card .stamp { right: -6px; }
}

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