/* cartily.co/ — the front door (Codex's Zillow-direction mockup, in Cartily's clothes). */
.home-page{padding-bottom:0}
.home-hero{position:relative;min-height:470px;background:#28201a;color:#fff;overflow:visible}
.home-hero picture,.home-hero-art{position:absolute;inset:0;width:100%;height:100%}
.home-hero-art{object-fit:cover;object-position:center 50%}
.home-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(22,17,13,.6) 0%,rgba(22,17,13,.3) 38%,rgba(22,17,13,0) 72%);pointer-events:none}
.home-hero-inner{position:relative;z-index:2;max-width:1240px;margin:0 auto;padding:84px 40px 64px}
.home-hero h1{font:800 clamp(42px,4.6vw,68px)/1.03 var(--sans);letter-spacing:-.05em;margin:0 0 16px;max-width:620px;color:#fff}
.home-hero p{font-size:17px;line-height:1.45;max-width:500px;margin:0 0 26px;font-weight:500;color:#fff}
.home-search{max-width:640px;position:relative}
#home-search{display:flex;align-items:center;height:64px;padding:6px;background:#fff;border-radius:10px;box-shadow:0 8px 22px #1b120b44}
#home-search>.icon{margin:0 10px 0 14px;color:#776f67;flex:none}
#home-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font-size:15px;color:var(--ink)}
#home-search .btn{height:52px;padding:0 24px;border-radius:7px}
.home-results{position:absolute;left:0;right:0;top:70px;z-index:8;margin:0;color:var(--ink);max-height:60vh;overflow:auto}
.home-results a,.home-results button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;color:var(--ink);text-decoration:none}
.home-results .icon{color:var(--orange);flex:none}.home-results small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.home-section{padding-top:52px;padding-bottom:44px}
.home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}
.home-head h2{font:800 27px/1.18 var(--sans);letter-spacing:-.03em;margin:0 0 5px}
.home-head p{margin:0;color:var(--muted);font-size:14px}
.home-head a{color:var(--orange-dark);font-size:13px;font-weight:800;white-space:nowrap;text-decoration:none}
.home-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-card{display:block;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;color:var(--ink);text-decoration:none;box-shadow:0 6px 20px rgba(45,29,16,.1);transition:transform .2s,box-shadow .2s}
.home-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #2d1d102b}
.home-card-photo{position:relative;height:190px;background:#eee6dc}.home-card-photo img{width:100%;height:100%;object-fit:cover}
.home-badge{position:absolute;top:12px;left:12px;background:#fff;color:#5e3625;padding:5px 8px;border-radius:5px;font:800 11px/1.2 var(--sans);box-shadow:0 2px 8px #0002}
.home-card-body{padding:14px 15px 15px}.home-card-body h3{font:700 17px/1.2 var(--sans);letter-spacing:-.02em;margin:0 0 6px}
.home-kind{font-size:12px;font-weight:700;color:var(--orange-dark);margin:0 0 6px}
.home-line{font-size:13px;line-height:1.4;color:var(--muted);margin:0 0 10px}
.home-place{display:flex;align-items:center;gap:5px;margin:0;padding-top:9px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.home-place .icon{width:14px;height:14px;color:var(--orange)}
.home-explore{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:26px;background:#f7eee5;border:1px solid #e5d5c7;border-radius:12px}
.home-explore .icon{width:40px;height:40px;color:var(--orange);margin-bottom:18px}.home-explore h3{font:700 22px/1.15 var(--sans);margin:0 0 10px}.home-explore p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 18px}.home-explore a{color:var(--orange-dark);font-weight:800;font-size:13px}
.home-band{background:#faf7f3;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.home-cats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.home-cat{display:flex;align-items:center;gap:12px;min-height:84px;padding:14px;background:var(--white);border:1px solid var(--line);border-radius:10px;color:var(--ink);font-weight:800;font-size:14px;text-decoration:none}
.home-cat:hover{border-color:var(--orange)}.home-cat img{width:44px;height:44px;flex:none}.home-cat i{margin-left:auto;color:var(--orange);font-style:normal;font-size:20px}
.home-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-roles article{text-align:center;padding:30px 26px 26px;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 6px 20px rgba(45,29,16,.08)}
.home-role-art{display:inline-grid;place-items:center;width:104px;height:104px;margin-bottom:10px}.home-role-art img{width:96px;height:96px;object-fit:contain}
.home-roles h3{font:700 21px/1.2 var(--sans);margin:0 0 8px}.home-roles p{color:var(--muted);font-size:13px;line-height:1.5;margin:0 auto 18px;max-width:290px}
.home-growth{background:#2e241f;color:#fff;padding:46px 0;margin-top:20px}
.home-growth .container{display:flex;align-items:center;justify-content:space-between;gap:28px}
.home-growth h2{font:800 30px/1.15 var(--sans);letter-spacing:-.035em;margin:0 0 8px;color:#fff}.home-growth p{font-size:14px;line-height:1.55;color:#dfd6cf;max-width:560px;margin:0}
.home-growth-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn-light{background:#fff;color:#713b25;border:1px solid #fff}.btn-light:hover{background:#fce9db}
.btn-ghost-light{background:transparent;color:#fff;border:1px solid #ffffff88}.btn-ghost-light:hover{background:#ffffff14}
@media(max-width:1100px){.home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.home-cats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.home-hero-art{object-position:76% center}.home-hero-inner{padding:64px 24px 40px}.home-hero h1{font-size:48px}.home-roles{grid-template-columns:1fr}.home-growth .container{display:block}.home-growth-actions{margin-top:20px}.home-cats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* On a phone the search sits low, clear of the mouse's face. */
@media(max-width:560px){.home-hero{min-height:440px}.home-hero:after{background:linear-gradient(180deg,rgba(23,18,12,.55) 0%,rgba(23,18,12,.15) 45%,rgba(23,18,12,.35) 100%)}
  .home-hero-inner{min-height:440px;display:flex;flex-direction:column;padding:28px 18px 18px}.home-hero h1{font-size:36px;margin-bottom:10px}.home-hero p{margin-bottom:14px}.home-hero p{font-size:15px;max-width:330px}
  .home-search{margin-top:auto;width:100%}#home-search{height:58px}#home-search .btn{height:46px;padding:0 16px}
  .home-section{padding-top:24px;padding-bottom:30px}.home-head{align-items:flex-start}.home-head h2{font-size:23px}
  .home-cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:16px;margin-right:-16px}
  .home-card,.home-explore{flex:0 0 78%;scroll-snap-align:start}.home-card-photo{height:176px}
  .home-cats{gap:9px}.home-cat{min-height:70px;padding:10px;font-size:12px;gap:8px}.home-cat img{width:36px;height:36px}}

/* /locations/: towns with shops, by state. */
.town-directory .page-top .btn{margin-top:14px}
.town-state{margin:28px 0 0}.town-state h2{font:700 13px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.town-state ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.town-state a{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);text-decoration:none}
.town-state a:hover{border-color:var(--orange)}.town-state strong{font-size:16px}.town-state small{color:var(--muted);white-space:nowrap}

/* Tablets: the footer's links wrap instead of pushing the page sideways, and
   the header tightens before its buttons run off the edge. */
.footer-links{flex-wrap:wrap;justify-content:flex-end;row-gap:4px;min-width:0}
@media(max-width:900px){.header-inner{gap:14px}}

/* Get the app. */
.home-app{border-top:1px solid var(--line);background:#fbf6ef;padding:30px 0}
.home-app .container{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.home-app h2{font:800 22px/1.2 var(--sans);letter-spacing:-.02em;margin:0 0 4px}.home-app p{margin:0;color:var(--muted);font-size:14px}
.home-app-badges{display:flex;gap:12px;align-items:center}.home-app-badges img{height:48px;width:auto;display:block}
/* The narrowest phones: a little less hero, so a shop card shows. */
@media(max-width:360px),(max-width:560px) and (max-height:760px){.home-hero,.home-hero-inner{min-height:clamp(250px,46svh,380px)}.home-hero-inner{padding-top:18px}.home-section .home-head{margin-bottom:12px}.home-head h2{font-size:20px}.home-head p{display:none}.home-head a{font-size:12px}.home-hero h1{font-size:31px}.home-hero p{font-size:14px;margin-bottom:10px}#home-search{height:52px}#home-search .btn{height:42px;padding:0 12px}}
.footer-play{display:inline-flex;align-items:center}.footer-play img{height:30px;width:auto;display:block}
/* Footer links stay comfortable tap targets now that they wrap. */
.footer-links a,.footer-links button{min-height:24px;display:inline-flex;align-items:center}
