/* ========================================
   GRACIA Custom Styles
   ======================================== */

/* --- 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);
}

/* --- Hero --- */
.gracia-hero {
	margin-top: 0 !important;
}

.gracia-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);
	}
}

/* --- 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);
}

/* --- Image hover --- */
.wp-block-image img {
	transition: transform 0.3s ease;
}

.wp-block-image:hover img {
	transform: scale(1.03);
}

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

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* --- JIN:R Compatibility --- */
.jinr-heading {
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--primary);
}

.d--bold {
	font-weight: 700;
}

.jinr-iconbox2,
.jinr-iconbox3 {
	padding: 1.5em;
	border-radius: 8px;
	background: var(--wp--preset--color--light-gray);
	margin-bottom: 1.5em;
}

/* JIN:R font-size classes */
.d--fontsize-15px { font-size: 15px; }
.d--fontsize-27px { font-size: 27px; }
.d--fontsize-30px { font-size: 30px; }
.d--fontsize-36px { font-size: 36px; }

/* JIN:R color classes */
.d--user-color2 { color: var(--wp--preset--color--primary); }

/* --- 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--accent);
	color: var(--wp--preset--color--contrast);
	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 --- */
.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);
}

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

/* --- Footer links override --- */
.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;
}

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

}
