/* ==========================================================================
   InFilly Theme Styles
   Hybrid theme: classic PHP header/footer, Gutenberg block content.
   ========================================================================== */

/* ---------- Global ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1f2937;
	background: #fff;
}
a { color: #1a8a7d; }
a:hover { color: #147068; }
h1, h2, h3, h4, h5, h6 { color: #1a2332; font-weight: 700; }

/* ---------- Layout ---------- */
.content-constrained {
	max-width: 1080px;
	margin: 0 auto;
	/* Vertical padding removed — full-bleed sections (hero, cta, section-background)
	   need to sit flush against the header/footer. Blocks provide their own
	   internal vertical breathing. */
	padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #e5e7eb;
}
.site-header__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.site-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}
.site-logo img {
	height: 32px;
	width: auto;
}
.site-header__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Nav menu (wp_nav_menu output) */
.site-nav {
	display: flex;
	align-items: center;
}
.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}
.site-nav__list li a {
	font-size: 0.875rem;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	transition: color 0.15s;
}
.site-nav__list li a:hover {
	color: #1a8a7d;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid #e5e7eb;
}
.site-footer__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 24px 24px;
	text-align: center;
}
.site-footer__links {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 16px;
}
.site-footer__links a {
	color: #6b7280;
	text-decoration: none;
	font-size: 0.875rem;
}
.site-footer__links a:hover {
	color: #1a8a7d;
}
.site-footer__copy {
	font-size: 0.8125rem;
	color: #9ca3af;
	margin: 0;
}

/* ---------- Hero ---------- */
.hero-section {
	padding: 120px 24px 80px;
	text-align: center;
	background: linear-gradient(180deg, #ffffff 0%, var(--wp--preset--color--gray-50) 100%);
}
.hero-section h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
	max-width: 700px;
	margin: 0 auto 20px;
}
.hero-section h1 mark {
	background: none;
	color: var(--wp--preset--color--teal);
}
.hero-section > .hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: var(--wp--preset--color--gray-600);
	max-width: 560px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

/* ---------- Section pattern ---------- */
.section-label {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--wp--preset--color--teal);
	margin-bottom: 12px;
}

/* ---------- Pain / Feature cards ---------- */
.pain-card {
	background: var(--wp--preset--color--red-soft);
	border-radius: 12px;
	padding: 24px;
	border-left: 4px solid var(--wp--preset--color--red-text);
}
.pain-card p {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gray-700);
	font-style: italic;
	margin: 0;
}

.feature-card {
	background: var(--wp--preset--color--green-soft);
	border-radius: 12px;
	padding: 28px;
	border-left: 4px solid var(--wp--preset--color--green-text);
}
.feature-card h3 {
	font-size: 1.0625rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.feature-card p {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gray-600);
	line-height: 1.6;
	margin: 0;
}

/* ---------- How it works ---------- */
.step-number {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

/* ---------- Pricing ---------- */
.price-card {
	border: 2px solid var(--wp--preset--color--gray-200);
	border-radius: 16px;
	padding: 36px;
	text-align: center;
	background: #fff;
}
.price-card.featured {
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 4px 24px rgba(26, 138, 125, 0.15);
	position: relative;
}
.price-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--wp--preset--color--teal);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 16px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.price-amount {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin: 16px 0 4px;
}
.price-amount span {
	font-size: 1rem;
	font-weight: 400;
	color: var(--wp--preset--color--gray-500);
}
.price-features {
	list-style: none;
	text-align: left;
	padding: 0;
	margin: 0 0 28px;
}
.price-features li {
	padding: 8px 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--gray-700);
	border-bottom: 1px solid var(--wp--preset--color--gray-100);
	display: flex;
	align-items: center;
	gap: 10px;
}
.check { color: var(--wp--preset--color--green-text); font-weight: 700; }
.cross { color: var(--wp--preset--color--gray-400); }

/* ---------- FAQ Accordion ---------- */
.faq-item {
	border-bottom: 1px solid var(--wp--preset--color--gray-200);
	padding: 20px 0;
}
.faq-question {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font-family: inherit;
	padding: 0;
}
.faq-question::after {
	content: '+';
	font-size: 1.375rem;
	color: var(--wp--preset--color--teal);
	transition: transform 0.2s;
	flex-shrink: 0;
	margin-left: 16px;
}
.faq-question.active::after { content: '\2212'; }
.faq-answer {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gray-600);
	line-height: 1.7;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
	max-height: 200px;
	padding-top: 12px;
}

/* ---------- CTA Section ---------- */
.cta-section {
	background: linear-gradient(135deg, var(--wp--preset--color--navy) 0%, #2a3a4f 100%);
}
.cta-section h2,
.cta-section p,
.cta-section .wp-block-button .wp-block-button__link {
	color: #fff;
}

/* ---------- Footer ---------- */
.site-footer a {
	color: var(--wp--preset--color--gray-500);
	text-decoration: none;
	font-size: 0.875rem;
}
.site-footer a:hover {
	color: var(--wp--preset--color--teal);
}

/* ---------- Buttons ---------- */
.wp-block-button__link.btn-primary {
	background: var(--wp--preset--color--teal) !important;
	color: #fff !important;
	border-radius: 8px;
	padding: 12px 28px;
	font-weight: 600;
	transition: all 0.2s;
	border: none;
}
.wp-block-button__link.btn-primary:hover {
	background: var(--wp--preset--color--teal-dark) !important;
	transform: translateY(-1px);
}
.wp-block-button__link.btn-secondary {
	background: #fff !important;
	color: var(--wp--preset--color--teal) !important;
	border: 2px solid var(--wp--preset--color--teal);
	border-radius: 8px;
	padding: 12px 28px;
	font-weight: 600;
	transition: all 0.2s;
}
.wp-block-button__link.btn-secondary:hover {
	background: var(--wp--preset--color--teal-light) !important;
}

/* ---------- Legal pages ---------- */
.legal-page { max-width: 680px; margin: 0 auto; padding: 60px 24px; }
.legal-page h1 { margin-bottom: 32px; }
.legal-page h2 { font-size: 1.125rem; margin: 28px 0 8px; }
.legal-page p { margin-bottom: 12px; font-size: 0.9375rem; }
.placeholder {
	background: #fef3c7;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 600;
}

/* ---------- Hero claim ---------- */
.hero-claim {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	max-width: 560px;
	margin: 0 auto 16px;
}

/* ---------- Safe Section ---------- */
.safe-section {
	text-align: center;
	border-top: 1px solid var(--wp--preset--color--gray-200);
	border-bottom: 1px solid var(--wp--preset--color--gray-200);
}
.safe-text {
	font-size: 1rem;
	color: var(--wp--preset--color--gray-600);
	line-height: 1.7;
	max-width: 640px;
	margin: 0 auto;
}

/* ---------- Feature Cards (native Gutenberg blocks) ---------- */
.feature-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 4px 16px rgba(26, 138, 125, 0.08);
}
.feature-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--wp--preset--color--teal-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.feature-card__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.feature-card__text {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}
/* Wide feature cards (wp:columns with image) */
.feature-card--wide {
	align-items: center;
}
.feature-card--wide .feature-image {
	display: flex;
	align-items: center;
	justify-content: center;
}
.feature-card--wide .feature-screenshot img,
.feature-card--wide .feature-image img {
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--wp--preset--color--gray-200);
	width: 100%;
	height: auto;
	display: block;
}
.feature-image--portrait .feature-screenshot {
	max-width: 260px;
	margin: 0 auto;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 32px;
	font-size: 0.9375rem;
}
.comparison-table th,
.comparison-table td {
	padding: 14px 20px;
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--gray-200);
}
.comparison-table th {
	font-weight: 600;
	color: var(--wp--preset--color--gray-600);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.comparison-table td:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}
.comparison-table tr.highlight {
	background: var(--wp--preset--color--teal-light);
}
.comparison-table tr.highlight td {
	font-weight: 600;
	color: var(--wp--preset--color--teal-dark);
}

/* ---------- Pricing Grid (HTML block) ---------- */
.pricing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 720px;
	margin: 40px auto 0;
}
.price-card .btn {
	display: block;
	text-align: center;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.2s;
}
.price-card .btn-primary {
	background: var(--wp--preset--color--teal);
	color: #fff;
}
.price-card .btn-primary:hover {
	background: var(--wp--preset--color--teal-dark);
}
.price-card .btn-secondary {
	border: 2px solid var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
	background: #fff;
}
.price-card .btn-secondary:hover {
	background: var(--wp--preset--color--teal-light);
}
.price-period {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--gray-500);
	margin-bottom: 24px;
}

/* ---------- Language Switcher (plugin) ----------
   Markup emitted by infilly-multilang/includes/switcher.php:
     <div class="lang-switcher">
       <button class="current-lang">…</button>
       <ul class="lang-dropdown" hidden>…</ul>
     </div>
   Toggle handled by assets/js/lang-switcher.js.
*/
.lang-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.lang-switcher .current-lang {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: 6px;
	font: 600 0.875rem / 1 inherit;
	color: var(--wp--preset--color--gray-700);
	cursor: pointer;
}
.lang-switcher .current-lang:hover {
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
}
.lang-switcher .current-lang .arrow {
	font-size: 0.75rem;
}
.lang-switcher .lang-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 160px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	z-index: 100;
}
.lang-switcher .lang-dropdown[hidden] { display: none; }
.lang-switcher .lang-dropdown li { margin: 0; }
.lang-switcher .lang-dropdown a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 14px;
	color: var(--wp--preset--color--gray-700);
	text-decoration: none;
	font-size: 0.875rem;
}
.lang-switcher .lang-dropdown a strong {
	min-width: 26px;
	font-weight: 700;
	color: var(--wp--preset--color--gray-500);
}
.lang-switcher .lang-dropdown a:hover {
	background: var(--wp--preset--color--gray-50);
	color: var(--wp--preset--color--teal);
}
.lang-switcher .lang-dropdown a.active {
	color: var(--wp--preset--color--teal);
}
.lang-switcher .lang-dropdown a.active strong {
	color: var(--wp--preset--color--teal);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.hero-section { padding: 100px 20px 60px; }
	.feature-card--wide { flex-wrap: wrap; }
	.feature-card--wide .wp-block-column { flex-basis: 100% !important; }
	.feature-image--portrait .feature-screenshot { max-width: 220px; }
	.pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
	.comparison-table { font-size: 0.8125rem; }
	.comparison-table th, .comparison-table td { padding: 10px 12px; }
}
