/**
 * Digital Impact SmartPage Styles
 * Mobile-first responsive styles for the SmartPage template.
 */

/* CSS Variables */
:root {
	--di-smartpage-primary-color: #2563eb;
	--di-smartpage-bg-color: #f9fafb;
	--di-smartpage-text-color: #1f2937;
	--di-smartpage-text-light: #6b7280;
	--di-smartpage-border-color: #e5e7eb;
	--di-smartpage-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--di-smartpage-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset and Base Styles */
* {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
}

.di-smartpage-wrapper {
	max-width: 480px;
	width: 100%;
	margin: 0 auto;
	background-color: var(--di-smartpage-bg-color);
	color: var(--di-smartpage-text-color);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}

/* Hero Section */
.di-smartpage-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 300px;
	background-size: cover;
	background-position: center;
	background-color: #1f2937;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 20px 80px;
	overflow: hidden;
}

.di-smartpage-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.di-smartpage-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
}

.di-smartpage-demo-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--di-smartpage-text-color);
	padding: 6px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.di-smartpage-logo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid rgba(255, 255, 255, 0.9);
	margin: 0 auto 20px;
	display: block;
	box-shadow: var(--di-smartpage-shadow-md);
}

.di-smartpage-restaurant-name {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	word-wrap: break-word;
	overflow-wrap: break-word;
	padding: 0 10px;
}

.di-smartpage-tagline {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	word-wrap: break-word;
	overflow-wrap: break-word;
	padding: 0 10px;
}

/* Primary Actions */
.di-smartpage-primary-actions {
	padding: 20px;
	margin-top: -40px;
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.di-smartpage-action-button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	padding: 16px 20px;
	margin-bottom: 12px;
	background-color: #ffffff;
	border: none;
	border-radius: 50px;
	box-shadow: var(--di-smartpage-shadow-md);
	text-decoration: none;
	color: var(--di-smartpage-text-color);
	transition: transform 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-action-button:active {
	transform: scale(0.98);
}

.di-smartpage-action-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.di-smartpage-action-text {
	flex: 1;
	text-align: left;
	min-width: 0;
	overflow: hidden;
}

.di-smartpage-action-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--di-smartpage-text-color);
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-action-sublabel {
	display: block;
	font-size: 13px;
	color: var(--di-smartpage-text-light);
	margin-top: 2px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Section Styles */
.di-smartpage-section-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--di-smartpage-text-color);
	margin: 0 0 20px;
	padding: 0 20px 10px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	position: relative;
	display: block;
	box-sizing: border-box;
}

.di-smartpage-section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--di-smartpage-primary-color);
	border-radius: 2px;
}

/* Highlights Section */
.di-smartpage-highlights {
	padding: 40px 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.di-smartpage-highlights-grid {
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.di-smartpage-highlight-card {
	background-color: #ffffff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--di-smartpage-shadow);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-highlight-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--di-smartpage-text-color);
	margin: 0 0 8px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-highlight-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--di-smartpage-primary-color);
	margin-bottom: 12px;
}

.di-smartpage-highlight-description {
	font-size: 14px;
	color: var(--di-smartpage-text-light);
	margin: 0 0 12px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-highlight-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.di-smartpage-tag {
	display: inline-block;
	padding: 4px 10px;
	background-color: var(--di-smartpage-bg-color);
	color: var(--di-smartpage-text-color);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

/* About & Contacts Section */
.di-smartpage-about-contacts {
	padding: 40px 20px;
	background-color: #ffffff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-about-text {
	font-size: 15px;
	color: var(--di-smartpage-text-color);
	line-height: 1.7;
	margin-bottom: 24px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-about-text p {
	margin: 0 0 12px;
}

.di-smartpage-about-text p:last-child {
	margin-bottom: 0;
}

.di-smartpage-contacts {
	margin-bottom: 24px;
}

.di-smartpage-contact-item {
	margin-bottom: 12px;
	font-size: 15px;
}

.di-smartpage-contact-item strong {
	display: block;
	margin-bottom: 4px;
	color: var(--di-smartpage-text-color);
}

.di-smartpage-contact-item strong.di-smartpage-contact-label {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.di-smartpage-contact-label-icon {
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.di-smartpage-contact-label-icon-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.di-smartpage-contact-item a {
	color: var(--di-smartpage-primary-color);
	text-decoration: none;
	word-wrap: break-word;
	overflow-wrap: break-word;
	display: inline-block;
	max-width: 100%;
}

.di-smartpage-contact-item a:hover {
	text-decoration: underline;
}

.di-smartpage-cta-button {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 16px 20px;
	background-color: var(--di-smartpage-primary-color);
	color: #ffffff;
	text-align: center;
	border-radius: 50px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	box-shadow: var(--di-smartpage-shadow-md);
	transition: opacity 0.2s;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-cta-button:active {
	opacity: 0.9;
}

/* Opening Hours Section */
.di-smartpage-opening-hours {
	padding: 40px 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-hours-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.di-smartpage-hours-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--di-smartpage-border-color);
	width: 100%;
	max-width: 100%;
	gap: 12px;
}

.di-smartpage-hours-item:last-child {
	border-bottom: none;
}

.di-smartpage-hours-day {
	font-weight: 500;
	color: var(--di-smartpage-text-color);
	flex-shrink: 0;
	min-width: 0;
	word-wrap: break-word;
}

.di-smartpage-hours-time {
	color: var(--di-smartpage-text-light);
	text-align: right;
	flex-shrink: 0;
	word-wrap: break-word;
}

/* Location Section */
.di-smartpage-location {
	padding: 40px 20px;
	background-color: #ffffff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-address {
	font-size: 15px;
	color: var(--di-smartpage-text-color);
	line-height: 1.7;
	margin-bottom: 12px;
	white-space: pre-line;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-location-note {
	font-size: 14px;
	color: var(--di-smartpage-text-light);
	margin: 0 0 20px;
}

.di-smartpage-maps-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	padding: 14px 20px;
	background-color: #ffffff;
	color: var(--di-smartpage-primary-color);
	text-align: center;
	border: 2px solid var(--di-smartpage-primary-color);
	border-radius: 50px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-maps-button:active {
	background-color: var(--di-smartpage-primary-color);
	color: #ffffff;
}

.di-smartpage-maps-icon-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

/* Gallery Section */
.di-smartpage-gallery {
	padding: 40px 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.di-smartpage-gallery-grid {
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.di-smartpage-gallery-item {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	overflow: hidden;
	border-radius: 12px;
}

.di-smartpage-gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.2s;
}

.di-smartpage-gallery-item img:hover {
	opacity: 0.9;
}

/* Social Media & Review Section */
.di-smartpage-social-review {
	padding: 40px 20px;
	background-color: #ffffff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-social-links {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.di-smartpage-social-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background-color: #ffffff;
	border: 2px solid var(--di-smartpage-border-color);
	border-radius: 50px;
	text-decoration: none;
	color: var(--di-smartpage-text-color);
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s;
	flex: 1;
	min-width: 0;
	justify-content: center;
	box-sizing: border-box;
}

.di-smartpage-social-button:hover {
	border-color: var(--di-smartpage-primary-color);
	background-color: var(--di-smartpage-bg-color);
	transform: translateY(-2px);
	box-shadow: var(--di-smartpage-shadow);
}

.di-smartpage-social-button:active {
	transform: translateY(0);
}

.di-smartpage-social-facebook:hover {
	border-color: #1877f2;
	color: #1877f2;
}

.di-smartpage-social-instagram:hover {
	border-color: #e4405f;
	color: #e4405f;
}

.di-smartpage-social-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.di-smartpage-social-icon-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

.di-smartpage-social-label {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.di-smartpage-review-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 20px;
	background-color: var(--di-smartpage-primary-color);
	color: #ffffff;
	text-align: center;
	border-radius: 50px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	box-shadow: var(--di-smartpage-shadow-md);
	transition: opacity 0.2s, transform 0.2s;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-review-button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.di-smartpage-review-button:active {
	transform: translateY(0);
	opacity: 1;
}

.di-smartpage-review-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.di-smartpage-review-text {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Footer */
.di-smartpage-footer {
	padding: 40px 20px;
	text-align: center;
	border-top: 1px solid var(--di-smartpage-border-color);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.di-smartpage-footer-text {
	font-size: 13px;
	color: var(--di-smartpage-text-light);
	margin: 0 0 8px;
}

.di-smartpage-footer-text a {
	color: var(--di-smartpage-primary-color);
	text-decoration: none;
}

.di-smartpage-footer-text a:hover {
	text-decoration: underline;
}

.di-smartpage-footer-extra {
	font-size: 12px;
	color: var(--di-smartpage-text-light);
	margin: 0;
}

/* Lightbox Styles */
.di-smartpage-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	animation: di-smartpage-lightbox-fade-in 0.3s ease-out forwards;
}

@keyframes di-smartpage-lightbox-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.di-smartpage-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.di-smartpage-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.di-smartpage-lightbox-image {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.di-smartpage-lightbox-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	color: #1f2937;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, transform 0.2s;
	padding: 0;
	margin: 0;
}

.di-smartpage-lightbox-close:hover {
	background-color: #ffffff;
	transform: scale(1.1);
}

.di-smartpage-lightbox-close:active {
	transform: scale(0.95);
}

.di-smartpage-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	color: #1f2937;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, transform 0.2s;
	padding: 0;
	margin: 0;
}

.di-smartpage-lightbox-nav:hover {
	background-color: #ffffff;
	transform: translateY(-50%) scale(1.1);
}

.di-smartpage-lightbox-nav:active {
	transform: translateY(-50%) scale(0.95);
}

.di-smartpage-lightbox-prev {
	left: 20px;
}

.di-smartpage-lightbox-next {
	right: 20px;
}

/* Responsive adjustments for larger screens */
@media (min-width: 481px) {
	.di-smartpage-wrapper {
		box-shadow: var(--di-smartpage-shadow-md);
	}

	.di-smartpage-lightbox-close {
		top: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
		font-size: 28px;
	}

	.di-smartpage-lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}

	.di-smartpage-lightbox-prev {
		left: 20px;
	}

	.di-smartpage-lightbox-next {
		right: 20px;
	}
}


