/* ===== Craig Digital Card – base + polish =====
   Colours/text are set inside Elementor (editable there).
   This file only adds layout safety, motion & hover polish. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: #0B1524;
	color: #0E1A2B;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* Fallback (non-Elementor) layout */
.cdc-site-header, .cdc-site-footer { text-align: center; padding: 18px; color: #fff; }
.cdc-site-header a { text-decoration: none; font: 700 20px "Poppins", sans-serif; }
.cdc-container { max-width: 760px; margin: 0 auto; padding: 32px 20px; background: #fff; border-radius: 16px; }
.cdc-entry-title { font-family: "Poppins", sans-serif; }

/* ---------- Card ---------- */
.dc-page { overflow-x: hidden; }

.dc-card {
	animation: dcRise .8s cubic-bezier(.2, .8, .2, 1) both;
	max-width: 100%;
}

.dc-cover { position: relative; }
.dc-cover::after {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(135deg, rgba(245,165,36,.0) 0 22px, rgba(245,165,36,.07) 22px 24px);
	pointer-events: none;
}

.dc-logo { position: relative; z-index: 2; animation: dcPop .7s .25s cubic-bezier(.2, 1.4, .4, 1) both; }
.dc-logo img { display: block; margin: 0 auto; border-radius: 10px; }

.dc-badges .elementor-icon-list-items { flex-wrap: wrap; justify-content: center; row-gap: 6px; }

/* Quick actions */
.dc-action .elementor-icon { transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 8px 18px rgba(14,26,43,.18); }
.dc-action:hover .elementor-icon { transform: translateY(-4px); box-shadow: 0 14px 24px rgba(245,165,36,.35); }
.dc-action .elementor-icon-box-title { margin: 0; }

/* Buttons */
.dc-btn .elementor-button { width: 100%; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; box-shadow: 0 10px 22px rgba(14,26,43,.15); }
.dc-btn .elementor-button:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 30px rgba(14,26,43,.22); }
.dc-pulse .elementor-button { animation: dcPulse 2.4s infinite; }
.dc-shake .elementor-button-icon { display: inline-flex; animation: dcRing 1.8s infinite; transform-origin: 50% 50%; }

/* Contact list */
.dc-contact .elementor-icon-list-item a,
.dc-contact .elementor-icon-list-item { word-break: break-word; }
.dc-contact .elementor-icon-list-icon { min-width: 22px; }

/* Services grid */
.dc-tile { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; border: 1px solid #E6EAF0; }
.dc-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(14,26,43,.12); background-color: #fff !important; }
.dc-service .elementor-icon-box-wrapper { text-align: left; }
.dc-service .elementor-icon-box-icon { margin-bottom: 10px !important; }
.dc-service .elementor-icon-box-title { margin: 0 0 4px; }
.dc-service .elementor-icon-box-title a { text-decoration: none; }
.dc-service .elementor-icon-box-description { margin: 0; }

/* Emergency */
.dc-emergency { position: relative; overflow: hidden; box-shadow: 0 18px 36px rgba(245,165,36,.35); }
.dc-emergency::before {
	content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px;
	border-radius: 50%; background: rgba(255,255,255,.18); pointer-events: none;
}

/* QR + share */
.dc-qr img { box-shadow: 0 10px 26px rgba(14,26,43,.18); }
.dc-share {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font: 600 14px "Poppins", sans-serif; color: #0E1A2B; background: #F4F6FA;
	border: 1px solid #E6EAF0; border-radius: 999px; padding: 10px 20px;
	transition: background .2s ease, transform .2s ease;
}
.dc-share:hover { background: #F5A524; transform: translateY(-2px); }
.dc-share.is-copied { background: #22C55E; color: #fff; }

/* Social */
.dc-social .elementor-social-icon { transition: transform .2s ease; }
.dc-social .elementor-social-icon:hover { transform: translateY(-3px) rotate(-6deg); }

/* Scroll reveal (added by card.js) */
.dc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.dc-reveal.is-in { opacity: 1; transform: none; }

/* Never hide content inside the Elementor editor */
.elementor-editor-active .dc-reveal { opacity: 1; transform: none; }

@keyframes dcRise { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dcPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dcPulse {
	0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); }
	70% { box-shadow: 0 0 0 14px rgba(245,165,36,0); }
	100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); }
}
@keyframes dcRing {
	0%, 50%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(-14deg); }
	20%, 40% { transform: rotate(14deg); }
}

@media (max-width: 767px) {
	.dc-card { animation-duration: .5s; }
	.dc-action .elementor-icon-box-title { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.dc-reveal { opacity: 1; transform: none; }
}
