/* CreateRocks: Highway Services. Guide-sign green for places, service blue for industries,
   caution yellow only for actions. Square corners, flat sheets, one 1px rule. */
:root {
  --green: #006b54; --green-deep: #00513f; --green-tint: #d2e8e0;
  --blue: #1f4fa0; --blue-deep: #173c7a; --blue-tint: #d6e0f3;
  --yellow: #f2c200; --yellow-deep: #dcb000; --yellow-wash: #fff3c4;
  --ink: #1a1a1a; --ground: #f1f1ec; --paper: #fff; --rule: #d9d9d0; --muted: #55554f;
  --font: "Overpass", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--green) var(--ground); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--ground); }
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--green-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.claim :focus-visible, .contact :focus-visible, .form :focus-visible, main > .wrap > .listings :focus-visible,
.listings :focus-visible, .tiles :focus-visible { outline-color: var(--ink); }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 3.5rem 0 1.25rem; }
p { margin: 0; }
.wrap, .container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }

/* Top bar */
.topbar { background: var(--ink); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: .75rem 1.5rem; min-height: 64px; flex-wrap: wrap; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 30px; background: var(--green); outline: 2px solid #fff; outline-offset: -5px; font-size: .78rem; letter-spacing: .03em; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; }
.topnav a { color: #fff; text-decoration: none; font-weight: 600; }
.topnav a:hover { color: var(--yellow); }
@media (max-width: 560px) {
  .topnav { margin-left: 0; width: 100%; gap: .25rem .9rem; font-size: .9rem; flex-wrap: nowrap; }
  .topnav .btn, .topnav .btn:hover { margin-left: auto; padding: .4rem .6rem; white-space: nowrap; }
  .sign .sign-head { gap: .9rem; align-items: flex-start; }
  .sign .sign-head h1 { font-size: 1.85rem; }
  .sign .sign-head .picto { width: 48px; height: 48px; }
  .sign .sign-head .picto .icon { width: 28px; height: 28px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; line-height: 1.1; padding: .75rem 1.15rem; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out; }
.btn:hover { background: var(--yellow-deep); color: var(--ink); }
.topnav .btn, .topnav .btn:hover { color: var(--ink); padding: .6rem 1rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: var(--yellow); }

/* Guide sign: the page head. Green for places, blue for services. */
.sign { position: relative; background: var(--green); color: #fff; padding: 6px; margin-top: 3.75rem; }
.sign.service { background: var(--blue); }
.sign-face { border: 3px solid #fff; padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: .9rem; }
.sign-head { display: flex; gap: 1.25rem; align-items: center; }
.sign h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.02; }
.sign p { color: var(--green-tint); font-size: 1.15rem; max-width: 62ch; }
.sign.service p { color: var(--blue-tint); }
.sign a:not(.btn) { color: #fff; }
.sign .picto { width: 64px; height: 64px; }
.sign .picto .icon { width: 38px; height: 38px; }
.sign .stars { color: #fff; }
.sign .stars .icon { color: var(--yellow); }
.sign .stars .muted { color: var(--green-tint); }
.exit-tab { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 100%; background: inherit; padding: 6px 6px 0; animation: tab-up .55s cubic-bezier(.16, 1, .3, 1) both; }
.exit-tab span { display: block; border: 3px solid #fff; border-bottom: 0; padding: .35rem .85rem .15rem; font-weight: 800; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
@keyframes tab-up { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .exit-tab { animation: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs + .sign { margin-top: 3.25rem; }

/* Search, set into the sign as its legend */
.search { display: grid; grid-template-columns: minmax(0, 1fr) 13rem 12rem auto; gap: 6px; margin-top: .9rem; }
.search input, .search select { font: inherit; padding: .85rem 1rem; border: 0; border-radius: 0; background: #fff; color: var(--ink); min-width: 0; caret-color: var(--green); }
.search .btn { padding-inline: 1.6rem; }
.search .btn .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 820px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search input, .search .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .search { grid-template-columns: 1fr; } }

/* Blue service panels */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.svc { background: var(--blue); padding: 5px; color: #fff; text-decoration: none; transition: background-color .15s ease-out; }
.svc-face { border: 2px solid #fff; height: 100%; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.svc b { font-size: 1.1rem; line-height: 1.15; }
.svc small { color: var(--blue-tint); font-size: .9rem; display: block; margin-top: .2rem; }
.svc p { color: var(--blue-tint); font-size: .92rem; line-height: 1.4; }
.svc:hover { background: var(--blue-deep); }
.svc:hover .picto { background: var(--yellow); color: var(--ink); }
.picto { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; color: var(--blue); flex: none; transition: background-color .15s ease-out; }
.picto .icon { width: 30px; height: 30px; }
.sign:not(.service) .picto { color: var(--green); }

/* Listings as rows, each with an exit tab naming its city */
.listings { background: var(--paper); border: 1px solid var(--rule); }
.listing { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); }
.listing:first-child { border-top: 0; }
.listing:hover { background: #fafaf7; }
.tab { background: var(--green); color: #fff; padding: 3px; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.tab span { display: block; border: 2px solid #fff; padding: .3rem .45rem .15rem; text-align: center; line-height: 1.15; }
.listing h3 { font-size: 1.25rem; }
.listing h3 a { color: var(--ink); text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.stars { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.stars .icon { width: 1em; height: 1em; color: var(--yellow-deep); }
.stars .muted { font-weight: 400; white-space: nowrap; }
.call { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
.call .icon { color: var(--green); width: 1.05em; height: 1.05em; }
.call:hover { color: var(--green-deep); text-decoration: underline; }
@media (max-width: 720px) {
  /* Business name leads; the city tab sits top-right on the same row. */
  .listing { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .listing > .tab { grid-column: 2; grid-row: 1; }
  .listing > div:nth-child(2) { grid-column: 1; grid-row: 1; }
  .listing > .call { grid-column: 1 / -1; }
}

/* Link tiles: states and industries */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--paper); border: 1px solid var(--rule); padding: .7rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color .15s ease-out, color .15s ease-out; }
.tile .count { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--ground); padding: .1rem .5rem; font-size: .9rem; }
.tile:hover { background: var(--green); border-color: var(--green); color: #fff; }
.tile:hover .count { background: var(--green-deep); color: #fff; }
.tile.none { color: var(--muted); }
.tile.none .count { background: transparent; }
.more { margin-top: 1rem; }
.more a { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }

/* Listing profile: sign and contact panel share the first row, so the phone sits in the first viewport */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; grid-template-areas: "head side" "main side"; column-gap: 2rem; }
.profile-head { grid-area: head; }
.profile-main { grid-area: main; }
.contact { grid-area: side; align-self: start; position: sticky; top: 1rem; margin-top: 3.25rem; background: var(--paper); border: 1px solid var(--rule); }
.contact .btn { display: flex; width: 100%; font-size: 1.2rem; padding: 1rem; }
.contact dl { margin: 0; padding: .25rem 1.25rem 1.25rem; }
.contact dt { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 1.1rem; }
.contact dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.contact .maps { display: flex; gap: .4rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); font-weight: 700; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; font-variant-numeric: tabular-nums; }
.hours td { padding: .5rem .75rem; border-top: 1px solid var(--rule); }
.hours tr:first-child td { border-top: 0; }
.hours td:first-child { color: var(--muted); width: 11rem; white-space: nowrap; }
.hours tr.today { background: var(--yellow-wash); font-weight: 700; }
.hours tr.today td:first-child { color: var(--ink); }
@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; grid-template-areas: "head" "side" "main"; }
  .contact { position: static; margin-top: 1.5rem; }
}

/* Claim / owner call to action: a caution-yellow sign */
.claim { background: var(--yellow); padding: 5px; margin-top: 3.5rem; }
.claim-face { border: 2px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.claim h2 { margin: 0; }
.claim p { margin-top: .35rem; max-width: 56ch; }

/* Forms (add listing, contact) */
.form { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; max-width: 780px; margin-top: 2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid #8f8f88; border-radius: 0; background: #fff; color: var(--ink); caret-color: var(--green); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

.empty { padding: 2rem 0; color: var(--muted); }
.results-summary { margin: 2rem 0 1rem; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: #cfcfc8; margin-top: 5rem; padding: 3rem 0 2rem; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer .brand { margin-bottom: .75rem; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.footer a:not(.brand) { display: block; color: #cfcfc8; text-decoration: none; padding: .2rem 0; }
.footer a:not(.brand):hover { color: var(--yellow); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid #3b3b37; padding-top: 1.25rem; font-size: .9rem; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }
