/*
 Theme Name:   Shipping Delight
 Theme URI:    https://shippingdelightinc.com
 Description:  Child theme for Blocksy — Shipping Delight Inc.
 Author:       Shipping Delight Inc.
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  shipping-delight
*/

/* ── Brand tokens ── */
:root {
	--navy: #0B2A52;
	--navy-dark: #081e3d;
	--navy-light: #133a6b;
	--red: #C8102E;
	--red-dark: #a00d24;
	--grey: #545454;
	--grey-light: #f5f6fa;
	--border: #e2e5ec;
	--white: #FFFFFF;
	--gold: #ECAD00;
	--site-bg: #f0f2f6;
}

/* ── Typography ── */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--grey);
	font-size: 15px;
	line-height: 1.7;
	background-color: var(--site-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--navy);
	font-weight: 800;
	line-height: 1.2;
}

/* ── Global layout ── */
.ct-container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

/* ══════════════════════════════
   TOP BAR — Blocksy native Top Row (managed by sticky engine)
   Style the row itself navy, plus the contact markup placed inside it.
   ══════════════════════════════ */
[data-row="top"] {
	background: var(--navy) !important;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
}

[data-row="top"] a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.15s;
}

[data-row="top"] a:hover {
	color: var(--white);
}

/* Contact markup styling (reused inside a Blocksy Content/HTML element) */
.sd-top-bar-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 7px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.sd-top-bar-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.sd-top-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sd-top-item svg {
	opacity: 0.7;
	flex-shrink: 0;
}

/* ══════════════════════════════
   HEADER
   ══════════════════════════════ */
[data-row="middle"] {
	background: var(--white) !important;
}

/* Nav items — navy text, heavier weight, centered */
.header-menu-1 {
	display: flex;
	justify-content: center;
	width: 100%;
}

.header-menu-1 .menu {
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-menu-1 .menu > .menu-item {
	position: relative;
}

.header-menu-1 .menu > .menu-item > a {
	color: rgba(255, 255, 255, 0.9) !important;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: color 0.15s;
}

.header-menu-1 .menu > .menu-item > a:hover {
	color: var(--white) !important;
}

/* ══════════════════════════════
   DROPDOWNS — aligned below parent
   ══════════════════════════════ */
.header-menu-1 .menu > .menu-item-has-children > .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 520px;
	padding: 16px 20px;
	background: var(--navy-light);
	border-top: 3px solid var(--red);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
	border-radius: 0 0 8px 8px;
	flex-wrap: wrap;
	gap: 0;
	z-index: 1000;
	justify-content: flex-start;
}

/* Invisible bridge so hover doesn't break between parent and dropdown */
.header-menu-1 .menu > .menu-item-has-children > .sub-menu::before {
	content: '';
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

.header-menu-1 .menu > .menu-item-has-children:hover > .sub-menu,
.header-menu-1 .menu > .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

.header-menu-1 .menu > .menu-item-has-children > .sub-menu > .menu-item {
	flex: 0 0 33.333%;
	padding: 0;
	list-style: none;
	pointer-events: auto;
}

.header-menu-1 .menu > .menu-item-has-children > .sub-menu > .menu-item > a {
	display: block;
	padding: 10px 14px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	cursor: pointer;
	pointer-events: auto;
}

.header-menu-1 .menu > .menu-item-has-children > .sub-menu > .menu-item > a:hover {
	background: rgba(200, 16, 46, 0.15);
	color: var(--red);
}

/* Legal dropdown — narrow vertical list */
.header-menu-1 .menu > .sd-legal-dropdown > .sub-menu {
	min-width: 220px;
	flex-direction: column;
}

.header-menu-1 .menu > .sd-legal-dropdown > .sub-menu > .menu-item {
	flex: none;
}

/* ── Nav CTA button ── */
.menu-item.sd-cta-btn > a {
	background: var(--red) !important;
	color: var(--white) !important;
	border: 2px solid var(--red) !important;
	padding: 8px 20px !important;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: background 0.2s;
}

.menu-item.sd-cta-btn > a:hover {
	background: var(--red-dark) !important;
	border-color: var(--red-dark) !important;
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.sd-footer {
	background: var(--navy-dark);
	color: rgba(255, 255, 255, 0.65);
	padding: 64px 0 24px;
	font-size: 14px;
	line-height: 1.7;
}

.sd-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.15s;
}

.sd-footer a:hover {
	color: var(--red);
}

.sd-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.sd-footer-grid h4 {
	color: var(--white);
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
}

.sd-footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.sd-footer-grid li {
	display: block;
	margin-bottom: 10px;
}

.sd-footer-cta-btn {
	display: inline-block;
	margin-top: 12px;
	background: var(--red);
	color: var(--white) !important;
	padding: 12px 28px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	transition: background 0.2s;
}

.sd-footer-cta-btn:hover {
	background: var(--red-dark);
	color: var(--white) !important;
}

.sd-footer-payments {
	max-width: 1240px;
	margin: 40px auto 0;
	padding: 0 20px;
	text-align: center;
}

.sd-footer-payments img {
	max-width: 280px;
	width: 100%;
	height: auto;
	background: var(--white);
	border-radius: 6px;
	padding: 6px 10px;
}

.sd-footer-bottom {
	text-align: center;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	color: rgba(255, 255, 255, 0.35);
}

/* ── WooCommerce button overrides ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--red);
	color: var(--white);
	border: none;
	font-weight: 600;
	border-radius: 4px;
	font-size: 0.9rem;
	padding: 12px 28px;
	transition: background 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--red-dark);
	color: var(--white);
}

/* ── General links ── */
a {
	color: var(--navy);
	transition: color 0.15s;
}

a:hover {
	color: var(--red);
}

/* ══════════════════════════════
   TESTIMONIAL CARDS (shared)
   ══════════════════════════════ */
.sd-tcard {
	background: var(--white);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s, transform 0.2s;
}

.sd-tcard:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.sd-tcard-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.sd-tcard-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.sd-avatar-teal {
	background: #0d9488;
}

.sd-avatar-navy {
	background: #1e3a5f;
}

.sd-avatar-red {
	background: var(--red);
}

.sd-tcard-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sd-tcard-meta strong {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.3;
}

.sd-tcard-meta span {
	font-size: 0.78rem;
	color: #9ca3af;
	line-height: 1.3;
}

.sd-tcard p {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--grey);
	margin: 0;
}

/* ── Mobile responsive ── */
@media (max-width: 1024px) {
	.sd-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.sd-top-bar-inner {
		gap: 4px;
		padding: 6px 20px;
	}

	.sd-top-bar-left {
		gap: 16px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.sd-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
