/* All Things in Common — homepage (hero + category cards)
   Loaded on the front page only via the atic-home-loader sandbox plugin. */

/* ───────────────────────── Hero ───────────────────────── */
.atic-hero {
	position: relative;
	overflow: hidden;
	padding: 58px 30px 66px;
}
.atic-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 54px;
}
.atic-hero__copy { flex: 1 1 54%; min-width: 0; }
.atic-hero__art {
	flex: 1 1 46%;
	min-width: 0;
	perspective: 900px;
}
.atic-hero__art svg.atic-cpu {
	display: block;
	width: 100%;
	height: auto;
	color: #4a4236;
	transition: transform 0.18s ease-out;
	will-change: transform;
}

.atic-hero__brandline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.atic-hero__brandline svg { width: 34px; height: 34px; }
.atic-hero h6 {
	margin: 0;
	color: #b08d57;
}
.atic-hero h1 {
	color: #f6f1ea;
	font-size: 44px;
	line-height: 1.12;
	margin: 6px 0 14px;
}
.atic-hero h1 em { color: #b08d57; }
.atic-hero__sub {
	color: #a99e90;
	font-size: 17px;
	line-height: 1.6;
	max-width: 50ch;
	margin: 0 0 26px;
}

/* Search bar */
.atic-hero__search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
	background: #fff;
	border-radius: 14px;
	padding: 8px;
	max-width: 660px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.atic-hero__search input,
.atic-hero__search select {
	margin: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	height: 46px;
	font-size: 15px;
	color: #2b2620;
}
.atic-hero__search input[type="search"] { flex: 1 1 180px; min-width: 140px; }
.atic-hero__search select {
	flex: 0 1 185px;
	background: #f6f1ea;
	border-radius: 9px;
	padding: 0 10px;
}
.atic-hero__zip { flex: 0 0 76px; width: 76px; text-align: center; background: #f6f1ea !important; border-radius: 9px; }
.atic-hero__search button {
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	background: #b08d57;
	color: #fff;
	border-radius: 9px;
	padding: 0 26px;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}
.atic-hero__search button:hover { background: #9a7a49; }

.atic-hero__quick {
	margin-top: 16px;
	font-size: 13px;
	color: #7d7367;
}
.atic-hero__quick a {
	color: #cbb289;
	margin-left: 12px;
	border-bottom: 1px solid rgba(176, 141, 87, 0.35);
}
.atic-hero__quick a:hover { color: #f6f1ea; }

/* Cursor glow — follows the mouse (positioned by atic-home.js) */
.atic-hero__glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
	background: radial-gradient(circle, rgba(176, 141, 87, 0.16) 0%, rgba(34, 134, 247, 0.07) 42%, transparent 66%);
	will-change: transform;
}

@media (max-width: 849px) {
	.atic-hero { padding: 36px 18px 44px; }
	.atic-hero__inner { flex-direction: column; gap: 26px; }
	.atic-hero h1 { font-size: 31px; }
	.atic-hero__art { width: 100%; max-width: 430px; }
}

/* ─────────────────── Category cards ─────────────────── */
.atic-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	max-width: 1140px;
	margin: 0 auto;
}
@media (max-width: 849px) { .atic-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 479px) { .atic-cats { grid-template-columns: 1fr; } }

.atic-cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	background: #faf7f2;
	border: 1px solid #e9e2d8;
	border-radius: 14px;
	color: #2b2620;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.atic-cat:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(43, 38, 32, 0.10);
	border-color: #b08d57;
	color: #2b2620;
}
.atic-cat__icon {
	flex: 0 0 50px;
	height: 50px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e9e2d8;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b08d57;
}
.atic-cat__icon svg { width: 26px; height: 26px; }
.atic-cat h4 { margin: 0 0 3px; font-size: 16.5px; line-height: 1.2; }
.atic-cat p { margin: 0; font-size: 12.5px; color: #8a8076; }
.atic-cats__all { text-align: center; margin-top: 26px; }
.atic-cats__all a {
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b08d57;
	border-bottom: 1px solid rgba(176, 141, 87, 0.4);
}

/* ─────────────── Front-page chrome ─────────────── */
.page-title { display: none; }
#main h6 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #b08d57;
}
.button.atic-btn-bronze,
.button.atic-btn-bronze:hover {
	background-color: #b08d57;
	border-color: #b08d57;
	color: #fff;
}

/* ───── Sharing network animation (adapted from the CPU architecture component) ─────
   Seven neighbor nodes; each receives a beam of light and sends its own color on. */
.atic-beam {
  offset-anchor: 10px 0px;
  animation-name: animation-path;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.75, -0.01, 0, 0.99);
}
.atic-line-1 { offset-path: path("M 30 25 h 60 q 5 0 5 -5 v -5");    animation-duration: 3.5s; animation-delay: 0s; }
.atic-line-2 { offset-path: path("M 95 15 h 65 q 5 0 5 5 v 2");      animation-duration: 3s;   animation-delay: 3.5s; }
.atic-line-3 { offset-path: path("M 165 22 v 21 q 0 5 -5 5 h -40");  animation-duration: 4s;   animation-delay: 6.5s; }
.atic-line-4 { offset-path: path("M 120 48 h 25 q 5 0 5 5 v 22");    animation-duration: 3s;   animation-delay: 2s; }
.atic-line-5 { offset-path: path("M 150 75 v 2 q 0 5 -5 5 h -65");   animation-duration: 4.5s; animation-delay: 5s; }
.atic-line-6 { offset-path: path("M 80 82 h -20 q -5 0 -5 -5 v -22");animation-duration: 3.5s; animation-delay: 1.2s; }
.atic-line-7 { offset-path: path("M 55 55 v -25 q 0 -5 -5 -5 h -20");animation-duration: 4s;   animation-delay: 4.7s; }
.atic-line-8 { offset-path: path("M 95 15 v 28 q 0 5 5 5 h 20");     animation-duration: 5s;   animation-delay: 8s; }
.atic-line-9 { offset-path: path("M 120 48 h -60 q -5 0 -5 5 v 2");  animation-duration: 4s;   animation-delay: 9.5s; }

@keyframes animation-path {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Node pulse — each circle breathes on its own rhythm */
.atic-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: atic-node-pulse 5.2s ease-in-out infinite;
}
.atic-node-1 { animation-delay: 0s; }
.atic-node-2 { animation-delay: 0.7s; }
.atic-node-3 { animation-delay: 1.4s; }
.atic-node-4 { animation-delay: 2.1s; }
.atic-node-5 { animation-delay: 2.8s; }
.atic-node-6 { animation-delay: 3.5s; }
.atic-node-7 { animation-delay: 4.2s; }
@keyframes atic-node-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.35); opacity: 1; }
}
