/* Sandhurst Site Design - graphics layer: hero illustration, skyline, ticker, timeline, covers,
   floating WhatsApp button and the AI chat panel. Loaded after site.css. */

/* ---------- Hero illustration ---------- */
.sd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sd-visual { position: relative; min-height: 540px; }
.sd-visual__panel { position: absolute; inset: 0 0 0 9%; border-radius: 30px; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 85% 0%, #d23a3f 0%, #a3171c 30%, #5e0d11 62%, #12161c 100%);
	box-shadow: 0 40px 80px -40px rgba(94, 13, 17, .65); }
.sd-visual__ring { position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .06); }
.sd-visual__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.sd-visual__sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; color: rgba(255, 255, 255, .34); }
.sd-cert { position: absolute; z-index: 2; left: 0; top: 12%; width: min(340px, 72%); background: #fffdf8; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); transform: rotate(-4deg); border: 1px solid #efe6d2; }
.sd-cert::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid #e9dcc0; border-radius: 12px; pointer-events: none; }
.sd-cert__top { display: flex; align-items: center; gap: 12px; }
.sd-cert__top small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-muted); font-weight: 700; }
.sd-cert__top strong { display: block; font-family: var(--sd-serif); font-size: 17px; color: var(--sd-ink); line-height: 1.2; }
.sd-cert__seal { width: 44px; height: 44px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d77a, #c9971c); color: #5b3d00; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #f8edcf; }
.sd-cert__name { margin-top: 18px !important; font-family: var(--sd-serif); font-size: 24px; font-weight: 600; color: var(--sd-red); }
.sd-cert__lines { display: grid; gap: 8px; margin-top: 14px; }
.sd-cert__lines span { height: 7px; border-radius: 4px; background: #ece5d6; }
.sd-cert__lines .is-short { width: 60%; }
.sd-cert__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 12px; color: var(--sd-muted); font-weight: 600; }
.sd-cert__ok { display: inline-flex; align-items: center; gap: 5px; color: #0f7a43; background: #e3f5ea; padding: 4px 9px; border-radius: 999px; }
.sd-chip-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 11px 15px 11px 11px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); line-height: 1.25; }
.sd-chip-card strong { display: block; font-size: 14px; color: var(--sd-ink); }
.sd-chip-card small { display: block; font-size: 12px; color: var(--sd-muted); }
.sd-chip-card__ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #e3f5ea; color: #0f7a43; }
.sd-chip-card__ico.is-gold { background: #fdf1d6; color: #9a6a00; }
.sd-chip-card__ico.is-ink { background: var(--sd-ink); color: #fff; }
.sd-chip-card--a { right: 6%; top: 8%; }
.sd-chip-card--b { right: 3%; top: 40%; }
.sd-chip-card--c { left: 4%; bottom: 20%; }
.sd-price-tag { position: absolute; z-index: 3; right: 5%; bottom: 7%; background: var(--sd-ink); color: #fff; border-radius: 18px; padding: 16px 22px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .12); }
.sd-price-tag small { display: block; font-size: 12.5px; color: var(--sd-muted-light); }
.sd-price-tag strong { display: block; font-family: var(--sd-serif); font-size: 40px; line-height: 1.05; }
@keyframes sd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.sd-chip-card--a { animation: sd-float 6s ease-in-out infinite; }
.sd-chip-card--b { animation: sd-float 7s ease-in-out .8s infinite; }
.sd-chip-card--c { animation: sd-float 6.5s ease-in-out 1.6s infinite; }

/* ---------- Ticker ---------- */
.sd-ticker { background: var(--sd-ink); color: #e9e3d8; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.sd-ticker__track { display: flex; width: max-content; gap: 44px; padding: 16px 0; animation: sd-marquee 48s linear infinite; }
.sd-ticker span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: .01em; }
.sd-ticker .sd-ico { color: #f1a7a5; }
@keyframes sd-marquee { to { transform: translateX(-50%); } }

/* ---------- How it works timeline ---------- */
.sd-how { background: linear-gradient(180deg, #fff 0%, var(--sd-paper) 100%); }
.sd-timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.sd-timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 32px; border-top: 2px dashed #d9c9b8; }
.sd-timeline li { position: relative; background: #fff; border: 1px solid var(--sd-line); border-radius: 18px; padding: 0 22px 24px; margin-top: 32px; }
.sd-timeline__dot { width: 64px; height: 64px; margin: -32px 0 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #c62a30, #7a1014); box-shadow: 0 0 0 6px #fff, 0 12px 24px -10px rgba(122, 16, 20, .7); }
.sd-timeline__n { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-red); }
.sd-timeline h3 { font-family: var(--sd-serif); font-size: 21px; font-weight: 600; color: var(--sd-ink); margin-top: 6px; line-height: 1.25; }
.sd-timeline p { font-size: 15px; color: var(--sd-muted); margin-top: 8px; }

/* ---------- Richer service tiles ---------- */
.sd-svc { overflow: hidden; }
.sd-svc::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 23, 28, .09), transparent 70%); transition: transform .4s; }
.sd-svc:hover::after { transform: scale(1.6); }
.sd-svc__ico { background: linear-gradient(135deg, #fbe9e7, #f4d3cf); box-shadow: inset 0 0 0 1px rgba(163, 23, 28, .08); }
.sd-svc:hover .sd-svc__ico { background: linear-gradient(135deg, #c62a30, #7a1014); color: #fff; }
.sd-svc--feature { background: radial-gradient(120% 120% at 100% 0%, #5e0d11 0%, #12161c 55%); }
.sd-svc--feature::after { background: none; }
.sd-svc--feature .sd-svc__ico { background: rgba(255, 255, 255, .1); }
.sd-svc--feature .sd-feature-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; width: 100%; color: rgba(255, 255, 255, .09); pointer-events: none; }
.sd-sec--paper { background-color: var(--sd-paper); background-image: radial-gradient(rgba(163, 23, 28, .07) 1px, transparent 1.2px); background-size: 26px 26px; }

/* ---------- Skylines in heroes / CTA ---------- */
.sd-phero .sd-wrap { position: relative; z-index: 1; }
.sd-phero__sky { position: absolute; right: 0; bottom: 0; width: min(62%, 900px); height: 70%; color: rgba(255, 255, 255, .1); z-index: 0; }
.sd-cta-band__sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 75%; color: rgba(255, 255, 255, .13); z-index: -1; }

/* ---------- Article covers ---------- */
.sd-card__media { position: relative; }
.sd-card__media img[src^="data:"] { object-fit: cover; }

/* ---------- Floating buttons ---------- */
.sd-float { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sd-wa { position: relative; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #062e17; border-radius: 999px; padding: 10px; box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .65); transition: transform .2s, box-shadow .2s; }
.sd-wa:hover { transform: translateY(-2px); color: #062e17; box-shadow: 0 18px 36px -10px rgba(18, 140, 70, .8); }
.sd-wa svg { flex: none; }
.sd-wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: sd-pulse 2.6s infinite; }
@keyframes sd-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.sd-wa__label { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 15px; padding-right: 8px; color: #062e17; }
.sd-wa__label small { font-size: 11.5px; font-weight: 600; opacity: .9; }
.sd-bot-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px 10px 10px; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, #12161c, #3b1114 70%, #a3171c); box-shadow: 0 14px 30px -10px rgba(18, 22, 28, .6); transition: transform .2s; }
.sd-bot-btn:hover { transform: translateY(-2px); }
.sd-bot-btn__ico { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #ffd7d4; }
.sd-float.is-chat-open .sd-bot-btn { display: none; }

/* ---------- AI chat panel ---------- */
.sd-bot { position: fixed; z-index: 130; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(18, 22, 28, .55), 0 0 0 1px rgba(18, 22, 28, .06); font-size: 15px; }
.sd-bot[hidden] { display: none !important; }
.admin-bar .sd-bot { height: min(640px, calc(100vh - 72px)); }
.sd-bot__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: radial-gradient(140% 160% at 100% 0%, #a3171c 0%, #5e0d11 45%, #12161c 100%); }
.sd-bot__av { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sd-bot__who { flex: 1; line-height: 1.25; }
.sd-bot__who strong { display: block; font-family: var(--sd-serif); font-size: 18px; }
.sd-bot__who small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #f3d6d4; }
.sd-bot__live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.sd-bot__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sd-bot__close:hover { background: rgba(255, 255, 255, .22); }
.sd-bot__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #faf8f4; overscroll-behavior: contain; }
.sd-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.sd-msg p + p, .sd-msg p + ul, .sd-msg ul + p { margin-top: 8px !important; }
.sd-msg ul { padding-left: 18px !important; list-style: disc; }
.sd-msg li + li { margin-top: 3px; }
.sd-msg a { color: var(--sd-red); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.sd-msg--bot { align-self: flex-start; background: #fff; color: var(--sd-text); border: 1px solid var(--sd-line); border-bottom-left-radius: 4px; }
.sd-msg--user { align-self: flex-end; background: var(--sd-ink); color: #fff; border-bottom-right-radius: 4px; }
.sd-msg--err { align-self: flex-start; background: #fff4f2; color: var(--sd-red-dark); border: 1px solid #f3c9c4; }
.sd-msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.sd-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9b2a6; animation: sd-dot 1.2s infinite; }
.sd-msg--typing span:nth-child(2) { animation-delay: .15s; }
.sd-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sd-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sd-bot__chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 4px; background: #faf8f4; scrollbar-width: none; }
.sd-bot__chips::-webkit-scrollbar { display: none; }
.sd-bot__chips button { flex: none; border: 1px solid var(--sd-line); background: #fff; color: var(--sd-ink); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sd-bot__chips button:hover { border-color: var(--sd-red); color: var(--sd-red); }
.sd-bot__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--sd-line); background: #fff; }
.sd-bot__form textarea { flex: 1; resize: none; border: 1.5px solid var(--sd-line); border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.4; max-height: 120px; outline: 0; }
.sd-bot__form textarea:focus { border-color: var(--sd-ink); }
.sd-bot__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--sd-red); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sd-bot__form button:disabled { opacity: .5; cursor: wait; }
.sd-bot__note { font-size: 12px; color: var(--sd-muted); padding: 0 14px 12px; background: #fff; line-height: 1.45; }
.sd-bot__note a { color: #0f7a43; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.sd-visual { min-height: 500px; }
	.sd-chip-card--c { display: none; }
}
@media (max-width: 1023px) {
	.sd-hero__grid { grid-template-columns: 1fr; }
	.sd-visual { min-height: 460px; max-width: 620px; width: 100%; margin: 0 auto; }
	.sd-visual__panel { inset: 0 0 0 6%; }
	.sd-timeline { grid-template-columns: 1fr 1fr; }
	.sd-timeline::before { display: none; }
}
@media (max-width: 720px) {
	.sd-visual { min-height: 400px; }
	.sd-cert { width: 78%; top: 6%; padding: 18px; }
	.sd-cert__name { font-size: 20px; }
	.sd-chip-card--a { display: none; }
	.sd-chip-card--b { display: none; }
	.sd-price-tag { right: 3%; bottom: 5%; padding: 12px 16px; }
	.sd-price-tag strong { font-size: 32px; }
	.sd-timeline { grid-template-columns: 1fr; }
	.sd-phero__sky { width: 100%; height: 50%; }
	.sd-float { right: 14px; bottom: 14px; gap: 10px; }
	.sd-wa__label, .sd-bot-btn__txt { display: none; }
	.sd-wa { padding: 13px; }
	.sd-bot-btn { padding: 6px; }
	.sd-bot-btn__ico { width: 44px; height: 44px; }
	.sd-bot { right: 0; bottom: 0; width: 100vw; height: 100%; border-radius: 0; }
	.admin-bar .sd-bot { height: calc(100% - 46px); }
}
@media (prefers-reduced-motion: reduce) {
	.sd-chip-card, .sd-ticker__track, .sd-wa::before { animation: none !important; }
	.sd-ticker__track { flex-wrap: wrap; width: auto; justify-content: center; }
}
@media print { .sd-float, .sd-bot, .sd-ticker { display: none !important; } }

/* keep card content above the decorative glow / skyline */
.sd-svc::after, .sd-feature-sky { z-index: 0; }
.sd-svc > :not(.sd-feature-sky):not(.sd-svc__n) { position: relative; z-index: 1; }
.sd-svc__n { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .sd-ticker__track span:nth-child(n+11) { display: none; } }
