/**
 * Tory SEO - Frontend Styles
 * Premium Apple-like design matching Fresenius Instruments brand
 */

/* === CSS Variables === */
:root {
	--tory-primary: #00a59d;
	--tory-primary-dark: #00737d;
	--tory-primary-light: #00B9BC;
	--tory-secondary: #203556;
	--tory-text: #203556;
	--tory-text-body: #474f72;
	--tory-text-light: #6b7a99;
	--tory-bg: #ffffff;
	--tory-bg-soft: #f7f8fa;
	--tory-bg-warm: #fafbfc;
	--tory-bg-dark: #0a0a0a;
	--tory-border: #e8ecf1;
	--tory-star: #f5a623;
	--tory-radius: 15px;
	--tory-radius-sm: 10px;
	--tory-radius-pill: 9999px;
	--tory-shadow: 0 2px 12px rgba(32, 53, 86, 0.06);
	--tory-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
	--tory-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
	--tory-shadow-btn: 0 8px 20px -4px rgba(0, 165, 157, 0.35);
	--tory-max-width: 1180px;
	--tory-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Container === */
.tory-seo-container {
	max-width: var(--tory-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.tory-seo-landing {
	font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--tory-text-body);
	line-height: 1.7;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.tory-seo-landing * {
	box-sizing: border-box;
}

/* === Breadcrumb === */
.tory-seo-breadcrumb {
	padding: 20px 0;
	font-size: 14px;
	color: var(--tory-text-light);
}

.tory-seo-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.tory-seo-breadcrumb li::after {
	content: "\203A";
	margin-left: 10px;
	color: var(--tory-border);
	font-size: 16px;
}

.tory-seo-breadcrumb li:last-child::after {
	display: none;
}

.tory-seo-breadcrumb a {
	color: var(--tory-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tory-seo-breadcrumb a:hover {
	color: var(--tory-primary-dark);
}

/* === Hero Section === */
.tory-seo-hero {
	background: linear-gradient(135deg, #203556, #00B9BC);
	color: #ffffff;
	padding: 80px 60px;
	border-radius: var(--tory-radius);
	margin-bottom: 0;
	position: relative;
	overflow: hidden;
}

.tory-seo-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
	background: linear-gradient(135deg, transparent 40%, rgba(0, 185, 188, 0.15) 100%);
	pointer-events: none;
}

.tory-seo-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.tory-seo-hero-content {
	max-width: 600px;
}

.tory-seo-h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 20px 0;
	line-height: 1.15;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.tory-seo-hero-sub {
	font-size: 1.1rem;
	opacity: 0.88;
	margin-bottom: 32px;
	line-height: 1.7;
}

.tory-seo-hero-image {
	position: relative;
	border-radius: var(--tory-radius);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: rgba(255, 255, 255, 0.08);
}

.tory-seo-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--tory-radius);
}

.tory-seo-hero-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 280px;
	background: linear-gradient(135deg, rgba(0, 165, 157, 0.15), rgba(0, 185, 188, 0.25));
	border-radius: var(--tory-radius);
}

.tory-seo-hero-image-placeholder svg {
	width: 80px;
	height: 80px;
	opacity: 0.4;
	color: #ffffff;
}

.tory-seo-hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tory-seo-hero-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 8px;
	backdrop-filter: blur(4px);
}

.tory-seo-hero-notice .tory-seo-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	opacity: 0.7;
}

.tory-seo-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: var(--tory-radius-pill);
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 16px;
	backdrop-filter: blur(4px);
}

/* === Buttons (tmk-style pill) === */
.tory-seo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem;
	background: var(--tory-primary-light);
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s;
	font-family: inherit;
}

.tory-seo-btn:hover {
	background: var(--tory-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--tory-shadow);
	color: #ffffff;
	text-decoration: none;
}

.tory-seo-btn:active {
	transform: translateY(0);
}

.tory-seo-btn .tory-seo-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.tory-seo-btn-primary {
	background: var(--tory-primary-light);
	color: #ffffff;
}

.tory-seo-btn-primary:hover {
	background: var(--tory-primary-dark);
}

.tory-seo-btn-lg {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.tory-seo-btn-lg .tory-seo-icon {
	width: 22px;
	height: 22px;
}

/* === Sections === */
.tory-seo-section {
	padding: 64px 0;
}

.tory-seo-section + .tory-seo-section {
	border-top: 1px solid var(--tory-border);
}

.tory-seo-faq + .tory-seo-section,
.tory-seo-section + .tory-seo-faq,
.tory-seo-cloud-connect + .tory-seo-section,
.tory-seo-section + .tory-seo-cloud-connect,
.tory-seo-tory-chat + .tory-seo-section,
.tory-seo-section + .tory-seo-tory-chat,
.tory-seo-cta,
.tory-seo-faq,
.tory-seo-tory-chat {
	border-top: none !important;
}

.tory-seo-section h2 {
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--tory-secondary);
	margin: 0 0 12px 0;
	letter-spacing: -0.01em;
}

.tory-seo-section-subtitle {
	color: var(--tory-text-light);
	font-size: 1.05rem;
	max-width: 680px;
	margin-bottom: 40px;
	line-height: 1.7;
}

/* === Grid Layout === */
.tory-seo-grid {
	display: grid;
	gap: 24px;
}

.tory-seo-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.tory-seo-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tory-seo-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* === Cards (Apple-like) === */
.tory-seo-card {
	background: var(--tory-bg);
	border: 1px solid var(--tory-border);
	border-radius: var(--tory-radius);
	padding: 32px;
	transition: var(--tory-transition);
	position: relative;
}

.tory-seo-card:hover {
	box-shadow: var(--tory-shadow-lg);
	transform: translateY(-4px);
	border-color: transparent;
}

.tory-seo-card-icon {
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(0, 165, 157, 0.08), rgba(0, 185, 188, 0.15));
	border-radius: 14px;
	color: var(--tory-primary);
}

.tory-seo-card-icon svg {
	width: 26px;
	height: 26px;
}

.tory-seo-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--tory-secondary);
	margin: 0 0 10px 0;
}

.tory-seo-card p {
	font-size: 0.95rem;
	color: var(--tory-text-light);
	margin: 0;
	line-height: 1.65;
}

/* === Section with Soft Background === */
.tory-seo-section-soft {
	background: var(--tory-bg-soft);
	margin-left: -24px;
	margin-right: -24px;
	padding-left: 24px;
	padding-right: 24px;
	border-top: none;
}

.tory-seo-section-soft + .tory-seo-section {
	border-top: none;
}

/* === Cloud Connect Section === */
.tory-seo-cloud-connect {
	background: var(--tory-bg-soft);
	padding: 48px 40px;
	border-radius: var(--tory-radius);
}

.tory-seo-cloud-connect-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.tory-seo-cloud-connect-image {
	border-radius: var(--tory-radius);
	overflow: hidden;
	aspect-ratio: 16/9;
}

.tory-seo-cloud-connect-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* === Third-Party Section === */
.tory-seo-manufacturer-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0;
}

.tory-seo-manufacturer-badge {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: var(--tory-bg);
	border: 1px solid var(--tory-border);
	border-radius: var(--tory-radius-pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--tory-secondary);
	transition: var(--tory-transition);
}

.tory-seo-manufacturer-badge:hover {
	border-color: var(--tory-primary);
	box-shadow: var(--tory-shadow);
}

.tory-seo-disclaimer {
	font-size: 0.88rem;
	color: var(--tory-text-light);
	padding: 16px 20px;
	background: #fffcf5;
	border: 1px solid #f0e6d0;
	border-radius: var(--tory-radius-sm);
	line-height: 1.6;
}

/* === Reviews Section === */
.tory-seo-rating-widget {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
	padding: 24px 32px;
	background: var(--tory-bg-soft);
	border-radius: var(--tory-radius);
}

.tory-seo-stars {
	display: flex;
	gap: 3px;
}

.tory-seo-star {
	font-size: 26px;
	color: var(--tory-star);
}

.tory-seo-star-half {
	position: relative;
	color: var(--tory-border);
}

.tory-seo-star-half::before {
	content: "\2605";
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: var(--tory-star);
}

.tory-seo-rating-text {
	font-size: 0.95rem;
	color: var(--tory-text-light);
}

.tory-seo-rating-text strong {
	font-size: 1.4rem;
	color: var(--tory-text);
	font-weight: 700;
}

.tory-seo-testimonial {
	background: var(--tory-bg);
	border: 1px solid var(--tory-border);
	border-radius: var(--tory-radius);
	padding: 32px;
	margin: 0;
	position: relative;
}

.tory-seo-testimonial::before {
	content: "\201C";
	position: absolute;
	top: 16px;
	left: 24px;
	font-size: 48px;
	color: var(--tory-primary);
	opacity: 0.2;
	font-family: Georgia, serif;
	line-height: 1;
}

.tory-seo-testimonial p {
	font-size: 1.05rem;
	font-style: italic;
	margin: 0 0 16px 0;
	color: var(--tory-text-body);
	padding-left: 8px;
}

.tory-seo-testimonial footer {
	font-size: 0.9rem;
	padding-left: 8px;
}

.tory-seo-testimonial cite {
	font-weight: 600;
	color: var(--tory-secondary);
	font-style: normal;
}

.tory-seo-testimonial-company {
	color: var(--tory-text-light);
}

.tory-seo-testimonial-company::before {
	content: " \2013 ";
}

/* === FAQ Accordion (Full Width, Clean Design) === */
.tory-seo-faq {
	background: var(--tory-bg-soft);
	margin-left: -24px;
	margin-right: -24px;
	padding-left: 24px;
	padding-right: 24px;
	border-radius: var(--tory-radius);
}

.tory-seo-faq-list {
	max-width: 100%;
}

.tory-seo-faq-item {
	background: var(--tory-bg);
	border: 1px solid var(--tory-border);
	border-radius: var(--tory-radius-sm);
	margin-bottom: 10px;
	overflow: hidden;
	transition: var(--tory-transition);
}

.tory-seo-faq-item:hover {
	border-color: rgba(0, 165, 157, 0.3);
}

.tory-seo-faq-item.active {
	border-color: var(--tory-primary);
	box-shadow: 0 2px 12px rgba(0, 165, 157, 0.08);
}

.tory-seo-faq-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 1rem;
	font-weight: 600;
	color: var(--tory-secondary);
	transition: var(--tory-transition);
	gap: 16px;
}

.tory-seo-faq-toggle:hover {
	color: var(--tory-primary-dark);
}

.tory-seo-faq-chevron {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--tory-primary);
}

.tory-seo-faq-item.active .tory-seo-faq-chevron {
	transform: rotate(180deg);
}

.tory-seo-faq-answer {
	display: none;
	padding: 0 24px 24px;
	color: var(--tory-text-body);
	line-height: 1.7;
}

.tory-seo-faq-item.active .tory-seo-faq-answer {
	display: block;
}

.tory-seo-faq-answer p {
	margin: 0;
}

/* === CTA Section === */
.tory-seo-cta {
	background: linear-gradient(135deg, #203556, #00B9BC);
	color: #ffffff;
	padding: 80px 60px;
	border-radius: var(--tory-radius);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.tory-seo-cta::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(ellipse, rgba(0, 185, 188, 0.12), transparent 70%);
	pointer-events: none;
}

.tory-seo-cta-inner {
	position: relative;
	z-index: 1;
}

.tory-seo-cta h2 {
	color: #ffffff;
	font-size: 2.1rem;
	letter-spacing: -0.01em;
}

.tory-seo-cta p {
	color: rgba(255, 255, 255, 0.85);
	max-width: 600px;
	margin: 0 auto 32px;
	font-size: 1.05rem;
}

.tory-seo-cta-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tory-seo-cta-divider {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	font-weight: 500;
}

.tory-seo-btn-outline {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

.tory-seo-btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #ffffff;
}

.tory-seo-cta .tory-seo-btn-primary {
	background: var(--tory-primary-light);
	color: #ffffff;
}

.tory-seo-cta .tory-seo-btn-primary:hover {
	background: #ffffff;
	color: var(--tory-primary-dark);
}

/* === Tory AI Chat Section === */
.tory-seo-tory-chat {
	background: var(--tory-bg-soft);
	border-radius: var(--tory-radius);
	padding: 64px 40px;
	margin-top: 32px;
	margin-bottom: 32px;
}

.tory-seo-tory-chat-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	align-items: center;
}

.tory-seo-tory-chat-visual {
	width: 220px;
	flex-shrink: 0;
}

.tory-seo-tory-chat-visual img {
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.tory-seo-tory-chat-content h2 {
	margin-top: 0;
}

.tory-seo-tory-chat-content p {
	color: var(--tory-text-body);
	line-height: 1.7;
	margin: 0 0 12px 0;
	max-width: 680px;
}

.tory-seo-tory-chat-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tory-primary-dark) !important;
	font-weight: 500;
	font-size: 0.95rem;
}

.tory-seo-tory-chat-hint .tory-seo-icon {
	width: 18px;
	height: 18px;
	color: var(--tory-primary);
}

/* Chat Simulation */
.tory-seo-chat-sim {
	margin-top: 24px;
	max-width: 420px;
	height: 150px;
	overflow: hidden;
}

.tory-seo-chat-sim-bubble {
	border-radius: 18px;
	font-size: 0.92rem !important;
	line-height: 1.5 !important;
	max-height: 0;
	padding: 0 18px;
	margin-bottom: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease, margin-bottom 0.4s ease, opacity 0.3s ease;
}

.tory-seo-chat-sim-bubble.visible {
	max-height: 100px;
	padding: 12px 18px;
	margin-bottom: 12px;
	opacity: 1;
}

.tory-seo-chat-sim-user {
	background: var(--tory-primary);
	color: #fff;
	margin-left: auto;
	width: fit-content;
	border-bottom-right-radius: 4px;
}

.tory-seo-chat-sim-tory {
	background: #fff;
	color: var(--tory-text);
	width: fit-content;
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.tory-seo-chat-sim-tory + .tory-seo-chat-sim-tory {
	border-top-left-radius: 4px;
}

.tory-seo-chat-sim-arrow {
	padding: 10px 14px;
	width: fit-content;
	color: var(--tory-primary);
}

.tory-seo-chat-sim-arrow.visible svg {
	animation: toryPulse 1.2s ease-in-out infinite;
}

@keyframes toryPulse {
	0%, 100% { transform: scale(1); opacity: 0.7; }
	50% { transform: scale(1.2); opacity: 1; }
}

/* === Related Services === */
.tory-seo-related-link {
	display: block;
	padding: 24px;
	background: var(--tory-bg);
	border: 1px solid var(--tory-border);
	border-radius: var(--tory-radius);
	text-decoration: none;
	transition: var(--tory-transition);
}

.tory-seo-related-link:hover {
	box-shadow: var(--tory-shadow-md);
	border-color: var(--tory-primary);
	transform: translateY(-2px);
}

.tory-seo-related-service {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--tory-primary);
	margin-bottom: 6px;
}

.tory-seo-related-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tory-secondary);
}

/* === Image Sections === */
.tory-seo-mood-image {
	border-radius: var(--tory-radius);
	overflow: hidden;
	margin: 32px 0;
	aspect-ratio: 21/9;
	background: var(--tory-bg-soft);
}

.tory-seo-mood-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* === Prose Content (Expert Text) === */
.tory-seo-prose {
	max-width: 820px;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--tory-text-body);
}

.tory-seo-prose p {
	margin: 0 0 20px 0;
}

.tory-seo-prose p:last-child {
	margin-bottom: 0;
}

.tory-seo-prose h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--tory-secondary);
	margin: 32px 0 12px 0;
}

.tory-seo-prose h3:first-child {
	margin-top: 0;
}

/* === About Fresenius Section === */
.tory-seo-about {
	background: var(--tory-bg-soft);
	border-radius: var(--tory-radius);
	padding: 40px 48px;
}

.tory-seo-about h2 {
	font-size: 1.3rem;
	margin-bottom: 16px;
}

.tory-seo-about .tory-seo-prose {
	font-size: 0.98rem;
	color: var(--tory-text-light);
}

.tory-seo-about .tory-seo-prose a {
	color: var(--tory-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tory-seo-about .tory-seo-prose a:hover {
	color: var(--tory-secondary);
}

/* === Icon Styles === */
.tory-seo-icon {
	width: 24px;
	height: 24px;
}

/* === Trust Badges === */
.tory-seo-trust-bar {
	display: flex;
	gap: 32px;
	padding: 32px 0;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.tory-seo-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tory-text-light);
}

.tory-seo-trust-item svg {
	width: 20px;
	height: 20px;
	color: var(--tory-primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
	.tory-seo-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tory-seo-hero-inner {
		grid-template-columns: 1fr;
	}

	.tory-seo-hero-image {
		display: none;
	}

	.tory-seo-cloud-connect-inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.tory-seo-tory-chat {
		padding: 40px 24px;
	}

	.tory-seo-tory-chat-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tory-seo-tory-chat-visual {
		width: 140px;
	}

	.tory-seo-hero {
		padding: 48px 28px;
	}

	.tory-seo-h1 {
		font-size: 1.85rem;
	}

	.tory-seo-grid-3,
	.tory-seo-grid-4 {
		grid-template-columns: 1fr;
	}

	.tory-seo-grid-2 {
		grid-template-columns: 1fr;
	}

	.tory-seo-section {
		padding: 40px 0;
	}

	.tory-seo-section h2 {
		font-size: 1.5rem;
	}

	.tory-seo-cta {
		padding: 48px 28px;
	}

	.tory-seo-hero-actions,
	.tory-seo-cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tory-seo-cta-divider {
		text-align: center;
	}

	.tory-seo-btn {
		justify-content: center;
	}

	.tory-seo-about {
		padding: 28px 24px;
	}

	.tory-seo-rating-widget {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}

	.tory-seo-card {
		padding: 24px;
	}

	.tory-seo-faq {
		margin-left: -24px;
		margin-right: -24px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.tory-seo-trust-bar {
		gap: 20px;
	}
}

@media (max-width: 375px) {
	.tory-seo-h1 {
		font-size: 1.5rem;
	}

	.tory-seo-hero {
		padding: 36px 20px;
	}

	.tory-seo-card {
		padding: 20px;
	}
}

/* === Elementor Overrides === */
.elementor-page .tory-seo-landing,
.elementor-default .tory-seo-landing {
	max-width: 100% !important;
	padding: 0 !important;
}

.elementor-page .tory-seo-container,
.elementor-default .tory-seo-container {
	max-width: var(--tory-max-width) !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
}

.elementor-page .tory-seo-hero,
.elementor-default .tory-seo-hero {
	border-radius: 0 !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: calc(50vw - 50% + 60px) !important;
	padding-right: calc(50vw - 50% + 60px) !important;
}

.elementor-page .tory-seo-cta,
.elementor-default .tory-seo-cta {
	border-radius: 0 !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: calc(50vw - 50% + 60px) !important;
	padding-right: calc(50vw - 50% + 60px) !important;
}

.elementor-page .tory-seo-faq,
.elementor-default .tory-seo-faq {
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: calc(50vw - 50% + 24px) !important;
	padding-right: calc(50vw - 50% + 24px) !important;
}

/* Reset Elementor heading styles */
.tory-seo-landing h1,
.tory-seo-landing h2,
.tory-seo-landing h3 {
	font-family: inherit !important;
}

.tory-seo-landing .tory-seo-h1 {
	color: #ffffff !important;
}

.tory-seo-landing .tory-seo-section h2 {
	color: var(--tory-secondary) !important;
}

.tory-seo-landing .tory-seo-cta h2 {
	color: #ffffff !important;
}

/* Elementor chat-sim overrides (prevents text size inflation clipping bubbles) */
.elementor-page .tory-seo-chat-sim,
.elementor-default .tory-seo-chat-sim {
	height: 170px !important;
}

.elementor-page .tory-seo-chat-sim-bubble,
.elementor-default .tory-seo-chat-sim-bubble {
	font-size: 0.92rem !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
}

/* === Directory / Pages Widget === */
.tory-seo-directory {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
}

/* Map Container */
.tory-seo-directory-map {
	border-radius: var(--tory-radius, 15px);
	overflow: hidden;
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	position: relative;
}

/* Country outlines */
.tory-seo-map-country {
	fill: #f1f5f9;
	stroke: #cbd5e1;
	stroke-width: 0.8;
	stroke-linejoin: round;
}

.tory-seo-directory-map-svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Map Dots */
.tory-seo-map-dot {
	transition: r 0.25s ease, fill 0.25s ease;
}

.tory-seo-map-dot-glow {
	transition: r 0.25s ease, fill 0.25s ease;
}

.tory-seo-map-dot.active {
	fill: #00e5e8;
}

.tory-seo-map-dot-glow.active {
	fill: rgba(0, 185, 188, 0.25);
}

/* Dot pulse animation */
@keyframes toryDotPulse {
	0%, 100% { r: 4; opacity: 1; }
	50% { r: 5; opacity: 0.85; }
}

.tory-seo-map-dot {
	animation: toryDotPulse 3s ease-in-out infinite;
}

.tory-seo-map-dot.active {
	animation: none;
}

/* Map Tooltip */
.tory-seo-map-tooltip {
	background: #203556;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Search */
.tory-seo-directory-search {
	position: relative;
	margin-bottom: 20px;
}

.tory-seo-directory-search input {
	width: 100%;
	padding: 16px 20px 16px 52px;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	font-size: 1rem;
	background: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	box-sizing: border-box;
}

.tory-seo-directory-search input:focus {
	border-color: var(--tory-primary, #00B9BC);
	box-shadow: 0 0 0 4px rgba(0, 185, 188, 0.1);
}

.tory-seo-directory-search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #94a3b8;
	pointer-events: none;
}

/* Active Location Label */
.tory-seo-directory-active-location {
	margin-bottom: 16px;
}

.tory-seo-directory-active-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(0, 185, 188, 0.1);
	border: 1.5px solid rgba(0, 185, 188, 0.3);
	border-radius: 9999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tory-primary-dark, #00737d);
}

.tory-seo-directory-active-label svg {
	color: var(--tory-primary, #00B9BC);
	flex-shrink: 0;
}

.tory-seo-directory-clear-location {
	background: none;
	border: none;
	color: var(--tory-text-light, #6b7a99);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0 0 0 4px;
	line-height: 1;
	transition: color 0.2s;
}

.tory-seo-directory-clear-location:hover {
	color: var(--tory-secondary, #203556);
}

/* Count */
.tory-seo-directory-count {
	font-size: 0.85rem;
	color: #94a3b8;
	margin-bottom: 16px;
}

/* Results Grid */
.tory-seo-directory-results {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.tory-seo-directory-item {
	display: block;
	padding: 16px 20px;
	background: #f8fafc;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.2s;
	border: 1.5px solid transparent;
}

.tory-seo-directory-item:hover {
	background: #ffffff;
	border-color: var(--tory-primary, #00B9BC);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tory-seo-directory-item-title {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--tory-secondary, #203556);
	margin-bottom: 4px;
}

.tory-seo-directory-item-meta {
	display: flex;
	gap: 8px;
	font-size: 0.78rem;
	color: #94a3b8;
}

.tory-seo-directory-item-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tory-seo-directory-empty {
	text-align: center;
	padding: 48px 24px;
	color: #94a3b8;
	font-size: 0.95rem;
	grid-column: 1 / -1;
}

.tory-seo-directory-more {
	grid-column: 1 / -1;
	text-align: center;
	padding: 16px;
}

.tory-seo-directory-more button {
	padding: 12px 32px;
	border: 2px solid var(--tory-primary, #00B9BC);
	border-radius: 10px;
	background: transparent;
	color: var(--tory-primary, #00B9BC);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.tory-seo-directory-more button:hover {
	background: var(--tory-primary, #00B9BC);
	color: #ffffff;
}

@media (max-width: 640px) {
	.tory-seo-directory-results {
		grid-template-columns: 1fr;
	}

	.tory-seo-directory-map {
		border-radius: var(--tory-radius-sm, 10px);
	}
}

/* === Tory Contact Block (Inline) === */
.tory-seo-contact-block {
	background: linear-gradient(135deg, var(--tory-secondary, #203556), var(--tory-primary, #00B9BC));
	border-radius: var(--tory-radius);
	padding: 40px;
	color: #ffffff;
	width: 100%;
	box-sizing: border-box;
}

.tory-seo-contact-block-header {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 28px;
}

.tory-seo-contact-block-photo {
	width: 200px;
	flex-shrink: 0;
}

.tory-seo-contact-block-photo img {
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.tory-seo-contact-block-info h4 {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
}

.tory-seo-contact-block-name {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 700;
	opacity: 0.9;
}

.tory-seo-contact-block-subtitle {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.78;
	line-height: 1.5;
}

.tory-seo-contact-block-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tory-seo-contact-block .tory-seo-btn-primary {
	background: #ffffff;
	color: var(--tory-primary);
}

.tory-seo-contact-block .tory-seo-btn-primary:hover {
	background: rgba(255, 255, 255, 0.85);
	color: var(--tory-primary-dark);
}

.tory-seo-contact-block .tory-seo-btn-outline {
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

.tory-seo-contact-block .tory-seo-btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #ffffff;
}

.tory-seo-contact-block-phone {
	font-weight: 400;
	font-size: 0.82rem;
	opacity: 0.7;
	margin-left: 4px;
}

.tory-seo-contact-block .tory-seo-chat-sim {
	margin-top: 24px;
	height: 160px;
}

.tory-seo-contact-block .tory-seo-chat-sim-hidden {
	display: none;
}

.tory-seo-contact-block .tory-seo-chat-sim-user {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.tory-seo-contact-block .tory-seo-chat-sim-tory {
	background: rgba(255, 255, 255, 0.9);
	color: var(--tory-secondary, #203556);
	box-shadow: none;
}

.tory-seo-contact-block .tory-seo-chat-sim-arrow {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
	.tory-seo-contact-block {
		padding: 28px 24px;
	}

	.tory-seo-contact-block-header {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.tory-seo-contact-block-photo {
		width: 150px;
	}

	.tory-seo-contact-block-actions {
		flex-direction: column;
	}

	.tory-seo-contact-block-btn {
		justify-content: center;
	}
}
