/*
 * Ruri Starter B 섹션 스타일
 * 수치(크기·여백·색)는 Start Bootstrap Agency v7 (MIT, (c) 2013-2023 Start Bootstrap LLC)와
 * Bootstrap 5 기본값에 맞췄습니다. 블록 에디터 구조에 맞게 새로 작성한 CSS입니다.
 */

/* ── 공통 ───────────────────────────── */
html { scroll-padding-top: 4.5rem; scroll-behavior: smooth; }
p { line-height: 1.75; }
.text-muted { color: #6c757d !important; }
:is(.page-section, .clients, .site-footer-b, .main-nav, .masthead) :is(h1, h2, h3, h4, p, figure, .wp-block-group, .wp-block-columns, .wp-block-buttons, .wp-block-social-links, .wp-block-html, form) {
	margin-block-start: 0;
}
:where(.page-section, .clients, .site-footer-b) h4 { margin-bottom: 0.5rem; }
.page-section p { margin-bottom: 1rem !important; }

/* Bootstrap row/col 과 같은 칸 간격 (gutter 1.5rem) */
.wp-block-columns.grid-row { gap: 0 1.5rem; margin-bottom: 0; }

/* 섹션 */
.page-section { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.page-section .section-heading {
	font-size: 2.5rem; margin-top: 0; margin-bottom: 1rem; text-transform: uppercase;
}
.page-section .section-subheading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem; font-weight: 400; font-style: italic; line-height: 1.2;
	color: #6c757d; margin-bottom: 4rem;
}
.has-light-background-color { background-color: #f8f9fa !important; }

/* ── 상단 메뉴 ───────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.main-nav {
	padding-top: 1rem !important; padding-bottom: 1rem !important;
	background-color: #212529;
	transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.main-nav .navbar-brand {
	margin: 0; color: #ffc800; font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; letter-spacing: 0.0625em; text-transform: uppercase; font-size: 1.25rem; line-height: 1.5;
}
.main-nav .navbar-brand a { color: inherit; text-decoration: none; }
.main-nav .navbar-nav { gap: 1rem; }
.main-nav .navbar-nav .wp-block-navigation-item__content {
	padding: 0.5rem; font-family: var(--wp--preset--font-family--heading); font-size: 0.95rem;
	line-height: 1.5; color: #fff; letter-spacing: 0.0625em; text-transform: uppercase; text-decoration: none;
}
.main-nav .navbar-nav .wp-block-navigation-item__content:hover { color: #ffc800; }
.main-nav .wp-block-navigation__responsive-container-open { color: #fff; }
@media (min-width: 992px) {
	.main-nav { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; background-color: transparent; }
	.main-nav .navbar-brand { font-size: 1.5rem; transition: font-size 0.3s ease-in-out; }
	.main-nav.navbar-shrink { padding-top: 1rem !important; padding-bottom: 1rem !important; background-color: #212529; }
	.main-nav.navbar-shrink .navbar-brand { font-size: 1.25rem; }
}
/* 고정 메뉴 아래로 내용이 숨지 않도록 (첫 화면 이외 페이지) */
.site-main.has-nav-offset { padding-top: 8rem; padding-bottom: 4rem; }

/* ── 히어로 ─────────────────────────── */
.wp-block-cover.masthead {
	min-height: 0; padding: 10.5rem 12px 6rem; text-align: center; color: #fff;
}
.masthead .masthead-subheading {
	font-family: var(--wp--preset--font-family--body); font-size: 1.5rem; font-style: italic;
	line-height: 1.5rem; margin-bottom: 25px;
}
.masthead .masthead-heading {
	font-family: var(--wp--preset--font-family--heading); font-size: 3.25rem; font-weight: 700;
	line-height: 3.25rem; margin-bottom: 2rem; text-transform: uppercase;
}
@media (min-width: 768px) {
	.wp-block-cover.masthead { padding-top: 17rem; padding-bottom: 12.5rem; }
	.masthead .masthead-subheading { font-size: 2.25rem; line-height: 2.25rem; margin-bottom: 2rem; }
	.masthead .masthead-heading { font-size: 4.5rem; line-height: 4.5rem; margin-bottom: 4rem; }
}

/* 큰 버튼 (btn-xl) */
.wp-block-button.is-style-xl .wp-block-button__link,
.contact-form .btn-xl {
	padding: 1.25rem 2.5rem; font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem; font-weight: 700; line-height: 1.5; text-transform: uppercase;
	border-radius: 0.375rem; background: #ffc800; border: 1px solid #ffc800; color: #fff;
}

/* ── 서비스 ─────────────────────────── */
.service-item { text-align: center; }
.service-item .service-icon { margin-bottom: 0; }
.service-item .service-icon img { display: block; margin: 0 auto; }
.service-item .service-title { margin: 1rem 0 !important; }

/* ── 포트폴리오 ─────────────────────── */
.portfolio-row { margin-bottom: 0 !important; }
.portfolio-item { max-width: 26rem; margin: 0 auto 1.5rem !important; }
.portfolio-row:last-child .portfolio-item { margin-bottom: 0 !important; }
.portfolio-item .portfolio-link { position: relative; margin: 0; }
.portfolio-item .portfolio-link a { display: block; position: relative; }
.portfolio-item .portfolio-link img { display: block; width: 100%; height: auto; }
.portfolio-item .portfolio-link a::after {
	content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 200, 0, 0.9); color: #fff; font: 700 3.5rem/1 var(--wp--preset--font-family--heading);
	opacity: 0; transition: opacity 0.25s ease-in-out;
}
.portfolio-item .portfolio-link a:hover::after { opacity: 1; }
.portfolio-item .portfolio-caption { padding: 1.5rem; text-align: center; background-color: #fff; }
.portfolio-caption .portfolio-caption-heading {
	font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 700;
	line-height: 1.5; margin-bottom: 0 !important;
}
.portfolio-caption .portfolio-caption-subheading { font-style: italic; line-height: 1.5; margin-bottom: 0 !important; }

/* ── 연혁 타임라인 ───────────────────── */
.timeline { position: relative; padding: 0; }
.timeline::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; margin-left: -1.5px; background-color: #e9ecef;
}
.timeline > .timeline-item { position: relative; min-height: 50px; margin: 0 0 50px; }
.timeline > .timeline-item::after { content: ""; display: table; clear: both; }
.timeline > .timeline-item:last-child { margin-bottom: 0; }
.timeline .timeline-panel { position: relative; float: right; width: 100%; padding: 0 20px 0 100px; text-align: left; }
.timeline .timeline-image {
	position: absolute; z-index: 100; left: 0; top: 0; width: 80px; height: 80px; margin: 0;
	text-align: center; color: #fff; border: 7px solid #e9ecef; border-radius: 100%;
	background-color: #ffc800; box-sizing: border-box; overflow: hidden;
}
.timeline figure.timeline-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.timeline h4.timeline-image { font-size: 10px; line-height: 14px; padding-top: 12px; margin: 0; }
.timeline .timeline-end { min-height: 80px; }
.timeline .timeline-panel h4 { margin-top: 0; }
.timeline .timeline-panel h4.subheading { text-transform: none; }
.timeline .timeline-panel h4:not(.subheading) { margin-bottom: 0.5rem; }
.timeline .timeline-panel p { margin-bottom: 0 !important; }
@media (min-width: 768px) {
	.timeline::before { left: 50%; }
	.timeline > .timeline-item { min-height: 100px; margin-bottom: 100px; }
	.timeline .timeline-panel { float: left; width: 41%; padding: 0 20px 20px 30px; text-align: right; }
	.timeline .timeline-image { left: 50%; width: 100px; height: 100px; margin-left: -50px; }
	.timeline h4.timeline-image { font-size: 13px; line-height: 18px; padding-top: 16px; margin-left: -50px; }
	.timeline .timeline-end { min-height: 100px; }
	.timeline .timeline-inverted > .timeline-panel { float: right; padding: 0 30px 20px 20px; text-align: left; }
}
@media (min-width: 992px) {
	.timeline > .timeline-item { min-height: 150px; }
	.timeline .timeline-panel, .timeline .timeline-inverted > .timeline-panel { padding: 0 20px 20px; }
	.timeline .timeline-image { width: 150px; height: 150px; margin-left: -75px; }
	.timeline h4.timeline-image { font-size: 18px; line-height: 26px; padding-top: 30px; margin-left: -75px; }
	.timeline .timeline-end { min-height: 150px; }
}
@media (min-width: 1200px) {
	.timeline > .timeline-item { min-height: 170px; }
	.timeline .timeline-panel { padding: 0 20px 20px 100px; }
	.timeline .timeline-inverted > .timeline-panel { padding: 0 100px 20px 20px; }
	.timeline .timeline-image { width: 170px; height: 170px; margin-left: -85px; }
	.timeline h4.timeline-image { padding-top: 40px; margin-left: -85px; }
	.timeline .timeline-end { min-height: 170px; }
}

/* ── 팀 ─────────────────────────────── */
.team-member { margin-bottom: 3rem !important; text-align: center; }
.team-member .team-photo { margin: 0 auto; }
.team-member .team-photo img {
	width: 14rem; height: 14rem; border: 0.5rem solid rgba(0, 0, 0, 0.1); border-radius: 50%;
	object-fit: cover; box-sizing: border-box;
}
.team-member h4 { margin-top: 1.5rem !important; margin-bottom: 0 !important; }
.team-member p { margin-bottom: 1rem; }
.page-section .team-note { max-width: 864px; margin: 0 auto 1rem !important; }

/* 소셜 버튼 (btn-dark btn-social) */
.btn-social-row.wp-block-social-links { gap: 0 !important; margin-bottom: 0; }
.btn-social-row .wp-social-link {
	width: 2.5rem; height: 2.5rem; margin: 0 0.5rem !important; border-radius: 100%;
	background-color: #212529 !important; color: #fff !important;
}
.btn-social-row .wp-social-link a { width: 100%; height: 100%; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.btn-social-row .wp-social-link svg { width: 1rem; height: 1rem; }

/* ── 거래처 로고 ─────────────────────── */
.clients { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.clients .wp-block-column { padding: 1rem 0; }
.clients .img-brand { margin: 0 auto; }
.clients .img-brand img { height: 2.75rem; width: auto; display: block; margin: 0 auto; }

/* ── 문의 ───────────────────────────── */
#contact {
	background-color: #212529;
	background-image: url("../images/map-bg.png");
	background-repeat: no-repeat;
	background-position: center;
}
.contact-form-grid { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.contact-form-col { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input, .contact-form textarea {
	width: 100%; box-sizing: border-box; padding: 1.25rem; border: 1px solid #dee2e6; border-radius: 0.375rem;
	font: 400 1rem/1.5 var(--wp--preset--font-family--body); color: #212529; background: #fff;
}
.contact-form textarea { height: 100%; min-height: 10rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #ffc800; }
.contact-form ::placeholder { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: #ced4da; }
.contact-form-submit { text-align: center; }
.contact-form .btn-xl[disabled] { opacity: 0.65; cursor: default; }
/* Ruri Forms: 개인정보 동의·결과 문구 (어두운 배경) */
.contact-form .ruri-form__consent { margin-top: -1.5rem; color: #ced4da; font-family: var(--wp--preset--font-family--body); }
.contact-form .ruri-form__status { color: #fff; }
@media (min-width: 768px) {
	.contact-form-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 푸터 ───────────────────────────── */
.site-footer-b {
	padding-top: 1.5rem !important; padding-bottom: 1.5rem !important;
	text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: 0.9rem;
}
.site-footer-b p { margin: 0; line-height: 1.5; }
.site-footer-b .footer-right a { color: #212529; text-decoration: none; margin-right: 1rem; }
.site-footer-b .footer-right a:last-child { margin-right: 0; }
.site-footer-b .wp-block-column { margin: 0; }
@media (min-width: 992px) {
	.site-footer-b .footer-left { text-align: left; }
	.site-footer-b .footer-right { text-align: right; }
}
@media (max-width: 991px) {
	.site-footer-b .wp-block-columns { flex-direction: column; gap: 1rem; }
}

/* ── 모바일: 칸 쌓기 ─────────────────── */
@media (max-width: 781px) {
	.wp-block-columns.grid-row { gap: 0; }
}
