/* ========================================
   Adamas Custom Styles
   ======================================== */

/* --- Global --- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

/* --- Sticky Header --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* --- Scroll Fade-in Animation --- */
.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Button hover transition --- */
.wp-block-button__link {
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   LANDING PAGE - Hero
   ======================================== */
.lp-hero {
	margin-top: 0 !important;
}

.lp-hero .wp-block-cover__inner-container {
	animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Hero image: center on all devices */
.lp-hero .wp-block-cover__image-background {
	object-position: center center;
}

.lp-hero-badge {
	backdrop-filter: blur(4px);
	transition: border-color 0.3s ease;
}

.lp-hero-badge:hover {
	border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ========================================
   LANDING PAGE - Section common
   ======================================== */
.lp-section h2 {
	color: var(--wp--preset--color--primary) !important;
}

/* ========================================
   LANDING PAGE - Feature Cards
   ======================================== */
.lp-feature-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.lp-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.lp-feature-card > p:first-child {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	line-height: 1;
}

/* ========================================
   LANDING PAGE - Item Cards
   ======================================== */
.lp-item-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lp-item-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lp-item-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.lp-item-icon svg {
	width: 52px;
	height: 52px;
}

/* ========================================
   LANDING PAGE - Flow Steps
   ======================================== */
.lp-flow-step {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.lp-flow-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ========================================
   LANDING PAGE - FAQ
   ======================================== */
.lp-faq-item {
	transition: box-shadow 0.3s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lp-faq-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lp-faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lp-faq-item summary::-webkit-details-marker {
	display: none;
}

.lp-faq-item summary::after {
	content: '+';
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--wp--preset--color--primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.lp-faq-item[open] summary::after {
	content: '-';
}

/* ========================================
   LANDING PAGE - Company Table
   ======================================== */
.lp-company-table table {
	border-collapse: collapse;
	width: 100%;
}

.lp-company-table th,
.lp-company-table td {
	padding: 1em 1.2em;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 0.9rem;
}

.lp-company-table th {
	background: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	width: 140px;
	white-space: nowrap;
}

.lp-company-table tr:last-child th,
.lp-company-table tr:last-child td {
	border-bottom: none;
}

/* ========================================
   LANDING PAGE - CTA Section
   ======================================== */
.lp-cta {
	position: relative;
	overflow: hidden;
}

.lp-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.lp-cta > * {
	position: relative;
	z-index: 1;
}

.lp-cta-phone a {
	transition: opacity 0.3s ease;
}

.lp-cta-phone a:hover {
	opacity: 0.85;
}

/* ========================================
   LANDING PAGE - Header Phone CTA
   ======================================== */
.header-phone-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.03em;
	transition: color 0.3s ease;
}

.header-phone-link:hover {
	color: var(--wp--preset--color--accent) !important;
}

.header-phone-label {
	font-size: 0.65rem;
	font-weight: 500;
	color: var(--wp--preset--color--mid-gray);
	letter-spacing: 0;
}

/* ========================================
   Contact Form 7
   ======================================== */
.wpcf7 { max-width: 100%; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 0.8em 1em;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-tint);
}

.wpcf7 textarea { min-height: 160px; resize: vertical; }

.wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 0.9em 2.5em;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
}

.wpcf7-form p { margin-bottom: 1.2em; }
.wpcf7-form label { display: block; margin-bottom: 0.4em; font-weight: 500; font-size: 0.9rem; }

/* ========================================
   Table styles (generic)
   ======================================== */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { padding: 0.8em 1em; border: 1px solid #e5e7eb; }
.wp-block-table th { background: var(--wp--preset--color--primary); color: #fff; font-weight: 600; }
.wp-block-table tr:nth-child(even) td { background: var(--wp--preset--color--light-gray); }

/* Company table override (no header row color) */
.lp-company-table .wp-block-table th {
	background: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--contrast);
}
.lp-company-table .wp-block-table td,
.lp-company-table .wp-block-table th {
	border: none;
	border-bottom: 1px solid #e5e7eb;
}

/* ========================================
   Separator short style
   ======================================== */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 60px;
	height: 3px;
	border: none;
}

/* ========================================
   Footer
   ======================================== */
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--accent); }

/* ========================================
   Image protection
   ======================================== */
img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* ========================================
   Page styles
   ======================================== */
.page-section {
	margin-bottom: 2.5em;
}
.page-section h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	border-left: 4px solid var(--wp--preset--color--accent);
	padding-left: 12px;
	margin-bottom: 0.8em;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 782px) {
	.site-header { padding-left: 1rem !important; padding-right: 1rem !important; }

	/* Hero: 70vh on mobile */
	.lp-hero { min-height: 70vh !important; }
	.lp-hero .wp-block-cover__image-background { object-position: center center; }

	/* Hero badges: 2x2 grid */
	.lp-hero .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.lp-hero .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 6px) !important;
		min-width: calc(50% - 6px) !important;
	}

	/* Feature cards: stack */
	.lp-features .wp-block-columns {
		flex-direction: column !important;
	}

	/* Item cards: 2 columns */
	.lp-items .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.lp-items .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 10px) !important;
		min-width: calc(50% - 10px) !important;
	}

	/* Flow steps: 2 columns */
	.lp-flow .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.lp-flow .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		min-width: calc(50% - 12px) !important;
	}

	/* Company table */
	.lp-company-table th {
		width: 100px;
	}

	/* Header phone - hide label on small screens */
	.header-phone-label {
		display: none;
	}
}

@media (max-width: 480px) {
	/* Item cards: single column */
	.lp-items .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		min-width: 100% !important;
	}

	/* Flow steps: single column */
	.lp-flow .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		min-width: 100% !important;
	}

	/* Company table: vertical layout */
	.lp-company-table th,
	.lp-company-table td {
		display: block;
		width: 100%;
	}
	.lp-company-table th {
		padding-bottom: 0.3em;
		border-bottom: none;
	}
	.lp-company-table td {
		padding-top: 0.3em;
		padding-bottom: 1em;
	}
}
