/*
Theme Name: Second Mobile Number
Theme URI: https://secondmobilenumber.com
Author: Intergo Telecom
Author URI: https://intergotelecom.com
Description: Bright, app-style block theme for SecondMobileNumber.com — a second phone number with 2-way SMS and voice on every device.
Version: 2.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: secondmobilenumber
Tags: full-site-editing, block-patterns, one-column, custom-colors, wide-blocks
*/

/* ---------- Small touches theme.json can't express ---------- */

html { scroll-behavior: smooth; }

.smn-card {
	transition: transform .2s ease, box-shadow .2s ease;
}
.smn-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* Gradient text for hero highlights */
.smn-gradient-text {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Pill label above headings */
.smn-pill {
	display: table;
	border-radius: 999px;
}
.smn-pill.has-text-align-center {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Step numbers */
.smn-step-num.smn-step-num {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	padding: 0 !important;
	border-radius: 50%;
	text-align: center;
}

/* Footer link lists without bullets */
footer .wp-block-list {
	list-style: none;
}

/* Hero illustration scales nicely */
.smn-hero .wp-block-image img,
.wp-block-image img[src$=".svg"] {
	height: auto;
	max-width: 100%;
}

/* Tick lists */
.smn-ticks {
	list-style: none;
	padding-left: 0;
}
.smn-ticks li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: .6rem;
}
.smn-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* FAQ accordion (core/details) */
.wp-block-details {
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--soft);
	padding: 1.1rem 1.4rem;
}
.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details[open] summary { margin-bottom: .6rem; }

/* Store badges */
.smn-store .wp-block-image { margin: 0; }
.smn-store img { display: block; height: 48px !important; width: auto !important; transition: transform .15s ease; }
.smn-store a:hover img { transform: translateY(-2px); }

/* Header sticks to top */
.smn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
}
.admin-bar .smn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .smn-header { top: 46px; } }

/* Featured pricing card */
.smn-featured {
	position: relative;
	outline: 3px solid var(--wp--preset--color--primary);
}

/* Hero blobs */
.smn-hero {
	position: relative;
	overflow: hidden;
}
.smn-hero::before {
	content: "";
	position: absolute;
	width: 720px; height: 720px;
	top: -320px; right: -220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(26,115,255,.18) 0%, rgba(26,115,255,0) 70%);
	z-index: 0;
	pointer-events: none;
}
.smn-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(11,79,209,.10) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	z-index: 0;
	pointer-events: none;
}
.smn-hero > * { position: relative; z-index: 1; }

@media (max-width: 781px) {
	.smn-hide-mobile { display: none !important; }
}

/* Cookie consent banner */
.smn-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 16px 20px;
	border-radius: 20px;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: .875rem;
	box-shadow: 0 18px 40px rgba(11, 27, 63, .25);
}
.smn-consent[hidden] { display: none; }
.smn-consent p { margin: 0; flex: 1 1 260px; }
.smn-consent a { color: #AFC3E8; text-decoration: underline; }
.smn-consent__actions { display: flex; gap: 8px; }
.smn-consent__btn {
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 999px;
	padding: .55rem 1.1rem;
	cursor: pointer;
	background: var(--wp--preset--color--accent);
	color: #fff;
}
.smn-consent__btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

/* Full-width sections sit flush against each other */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0 !important;
}

/* Wordmark */
.smn-brand-accent { color: var(--wp--preset--color--primary); }
.smn-brand-accent--dark { color: #5FA0FF; }
